In [2]:
range(20)
Out[2]:
In [3]:
range(0,20)
Out[3]:
In [4]:
(1,2,3)
Out[4]:
In [5]:
a = range(20)
In [6]:
a
Out[6]:
In [7]:
print(a)
In [12]:
a = (1,2,3)
len(a)
Out[12]:
In [13]:
a[0]
Out[13]:
In [16]:
a = [(1,"b"),(2,"a"),(1,'a')]
In [17]:
sorted(a)
Out[17]:
In [19]:
# Tuplas sao imutaveis, veja a original nao foi alterado
a
Out[19]: