Skip to content

Instantly share code, notes, and snippets.

@niranjrajasekaran niranjrajasekaran/
Last active May 11, 2019

What would you like to do?
Basic implementation of python tuples
In [1]: t = (1, 2, 3, 4)
In [2]: t[0]
Out[2]: 1
In [3]: t[0] = 10
TypeError Traceback (most recent call last)
<ipython-input-4-88963aa635fa> in <module>()
1 t[0] = 10
TypeError: 'tuple' object does not support item assignment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.