tuple object does not support item assignment error in python

technical talkiess
0

 

tuple object does not support item assignment error in python. If you change the tuple key value exists in the tuple then this error is come. You can't change the tuple key value.



Traceback (most recent call last):

  File "c:\Users\ukv-208\Downloads\prac\python\listanditsfunction.py", line 23, in <module>

    tuple123[1] = "asasd"

    ~~~~~~~~^^^

TypeError: 'tuple' object does not support item assignment

PS C:\Users\ukv-208>

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)