Question: what is the difference between array and dictionary?
Answer: arrays and dictionaries both store collections of data, but differ by how they are accessed. Items in an array are accessed by position (often a number) and hence have an order. Items in a dictionary are accessed by key and are unordered. Sets are groups of items, unordered with duplicates removed.