Given is a nested tuple. Write a program to modify the first item (22) of a list inside a following tuple to 222
belongs to collection: Python Tuple Exercises
All Answers
total answers (1)
belongs to collection: Python Tuple Exercises
total answers (1)
Hint:
The given tuple is a nested tuple. Use indexing to locate the specified item and modify it using the assignment operator.
Solution:
need an explanation for this answer? contact us directly to get an explanation for this answer