Changes

303 bytes added ,  15:10, 25 March 2022
no edit summary
Line 19: Line 19:     
<strong>Data Structure Variable Types (Pro Only)</strong>
 
<strong>Data Structure Variable Types (Pro Only)</strong>
* <strong>Dictionary</strong> stores a series of key value pairs. For example if you wanted to store a count for each day of the week you would have entries such as dayCount[monday] = 1, dayCount[tuesday] = 3 etc.
+
* <strong>Dictionary</strong> stores a series of key value pairs. For example if you wanted to store a count for each day of the week you could create a dictionary called dayOfWeekCount and have a series of entries such as dayOfWeekCount [monday] = 1, dayOfWeekCount [tuesday] = 3 etc.
* <strong>Array</strong> stores a series of index values.
+
* <strong>Array</strong> stores a series of values with associated index variables. For example if you wanted to store a count for each day of the month you could create an array called dayOfMonthCount and have a series of entries such as dayOfWeekCount[1] = 5, dayOfWeekCount[2] = 2 etc.