Tuples individual members arent assignable
suggest changefoo = ("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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents