Variables are good for storing individual chunks of data, and arrays and dictionaries are good for storing lists of related data. For greater flexibility, Swift also offers additional data structures called tuples and sets.
A tuple lets you store related data in one place that may consist of different data types such as a string and an integer , which could represent a person’s name and an employee ID number. A set is similar to an array or a dictionary in letting you store two or more chunks of related data such as strings or integers.
Perhaps the biggest advantage of both tuples and ...