In [1]:
empty_tuple = ()
print empty_tuple
In [2]:
empty_tuple.append(1)
In [3]:
dir(tuple)
Out[3]:
In [5]:
tuple1 = (1, 2, 4)
print tuple1
In [6]:
print tuple1[0]
In [7]:
print tuple1[-1]
In [8]:
print len(empty_tuple)
print len(tuple1)
In [ ]: