Worksheet 2 - Tuples (Answers)

 Fill-in-the-blanks

1. lists, modified

2. program

3. changed

4. months

5. round

6. initial values

7. comma

8. 12

9. indexes

10. "Jan"

11. "Dec"


Short questions

1. A tuple cannot be modified after it is created, while a list can be changed.

2. Because the months do not change and the values should stay the same.

3. Round brackets (parentheses).

4. tupleName = (initial values)

5. They are separated by commas.

6. monthsOfYear

7. By using indexes.

8. "Jan"

9. "Dec"

No comments:

Post a Comment