Professional Documents
Culture Documents
Tuples
Tuples
In [18]:
# print items
Python
R
SQL
C++
In [4]:
# len()
In [6]:
# concatenation(+)
In [7]:
# repeatition(*)
Repeated tuple is: (9, 99, 999, 9999, 9, 99, 999, 9999, 9, 9
9, 999, 9999)
In [8]:
# item existence
In [17]:
# slicing
In [9]:
# append
In [11]:
# delete
-------------------------------------------------------------
--------------
NameError Traceback (most rec
ent call last)
~\AppData\Local\Temp/ipykernel_20328/681008889.py in <module>
5 del tup1
6 print("As tup1 no longer exist, following error is ge
nerated:\n")
----> 7 print(tup1)