Tuples
Tuples are used to make a tuple of items. There’s also something called a list and dictionary. The difference between a tuple and lists and dictionaries is that items in a tuple CANNOT be changed or added to (only tuples can be added to tuples, not strings to tuples). This is called Tuple Immutability. When merging two tuples together, we call that concatenation.
A tuple is assigned a name just like a variable. The objects it holds act more like strings than variables (they do not hold value).
Type in the following program. You don't have to put the comments in. They're just there to show you what each section of the program is teaching you. It's so big that you have to open a link to it:
From this program you should know the following:
Assignment #12
Create a program that does the following:
The output should look as close as possible to the example below. (ignore that 4 in the second last line, it's an oopsie)