Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tupla = 3,6,9,10,17
- print 'Esta es la tupla',tupla
- x=tupla[0:len(tupla):2]
- print 'Ciertos elementos de la tupla: ',x
- y=[]
- for i in range(len(tupla)-1,-1,-1):
- y.append(tupla[i])
- print 'Tupla invertida: ',tuple(y)
- #for i in range(0,len(tupla)):
- # y.append(tupla[i])
- #print reverse(y)
Advertisement
Add Comment
Please, Sign In to add comment