Question 1/6: Which of these are best stored as arrays?
Hint: Arrays can hold any number of items, including duplicates, and preserve their order. Sets are preferred when you don't want duplicate items and when order doesn't matter. Tuples are preferred when you want limited items of specific types and names.Click to show.
Option 1: A user's address.
It would be hard to remember which position was their city, state, or country, and cause problems if you made changes in the future.
Option 2: Messages in a chat program.
There can be many messages, and they don't need to be unique.