All problems
EasyTuples
Tuples are immutable
Try assigning to a tuple element — catch the TypeError and print "immutable".
- #tuple
- #immutable
Sample input
(1, 2, 3)
Sample output
immutable
tuple-immutable.py
Output
Press "Run code" to execute.
Loading…
Try assigning to a tuple element — catch the TypeError and print "immutable".
(1, 2, 3)
immutable
Press "Run code" to execute.