Python Tuple Exercises
Let’s check out some exercises that will help understand tuples better.
Exercise 7-a
Assign the first element of the tuple to answer_1 on line 2
Exercise 7-b
This time print the third element of the tuple.
Exercise 7-c
Print the second from the last element of the tuple.
Exercise 7-d
What's the index of 2?
Exercise 7-e
How many times does 777 occur?
Exercise 7-f
What is the sum of all the numbers in the tuple?
Exercise 7-g
What is the minimum value in the tuple?
Exercise 7-h
What is the maximum value in the tuple?