Tuple Item Assignment Fails
point = (10, 20)
coords = [10, 20]
coords[0] = 99
try:
point[0] = 99
except TypeError as e:
print("TypeError:", e)
print(coords, point)
What does this print?
Sign in to answer questions and track your progress
Sign In