Funzioni > Sequenze

Da controllare, rispetto alle ultime versioni di Python

z.add(x)set
z.append(x)array.arraylist
z.clear()dictlistset
z.copy()dictlistset
z.count(x)
z.count(x,p1)
z.count(x,p1,p2)
array.arraylistrangestrtuple
z.discard(x)dictset
s1.find(s2)
s1.find(s2,p1)
s1.find(s2,p1,p2)
strSe s2 non è presente in s1: -1
z.index(x)
z.index(x,p1)
z.index(x,p1,p2)
array.arraylistrangestrtupleSe x non è presente: ERRORE
z.insert(p,x)array.arraylist
len(z)array.arraydictlistrangesetstrtuple
list(z)array.arraydictlistrangesetstrtuple
max(z)array.arraydictlistrangesetstrtuple
min(z)array.arraydictlistrangesetstrtuple
z.pop()
z.pop(p)
array.arraydictlistset
print(z)array.arraydictlistrangesetstrtuple
z.remove(x)array.arraydictlistset
z.reverse()array.arraylist
reversed(z)array.arraylistrangestrtupleRestituisce un iteratore
z.sort()list
sorted(z)array.arraydictlistrangesetstrtupleRestituisce una lista
str(z)array.arraydictlistrangesetstrtuple
sum(z)array.arraydictlistrangesettupleSe non sono numeri: ERRORE
z1.update(z2)dictset