Tuples individual members arent assignable

suggest change
foo = ("bar", 1, "Hello!",)
foo[1] = 2 # ERROR!!

Second line would return an error since tuple members once created aren’t assignable. Because of tuple’s immutability.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents