Path: blob/master/Temel Python Objeleri ve Veri Yapıları/Videolardaki Notebooklar/Demetler (Tuplelar).ipynb
765 views
Kernel: Python 3
In [13]:
In [14]:
Out[14]:
tuple
In [15]:
Out[15]:
5
In [16]:
Out[16]:
7
In [17]:
Out[17]:
1
In [34]:
In [35]:
Out[35]:
5
In [36]:
Out[36]:
1
In [37]:
Out[37]:
0
In [38]:
Out[38]:
0
In [39]:
Out[39]:
3
In [40]:
Out[40]:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-40-620595575e7b> in <module>()
----> 1 demet3.index("AngularJS")
ValueError: tuple.index(x): x not in tuple
In [41]:
Out[41]:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-41-22b5e00bbd5a> in <module>()
1 demet = (1,2,3,4,5)
----> 2 demet[-1] = 10
TypeError: 'tuple' object does not support item assignment
In [ ]: