Advertisement
elcocodrilotito

conversión str

Dec 1st, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. def conversion_str(lista):
  2.     for i in range(len(lista)): #Cuento 0 como par
  3.         if lista[i]%2==0:
  4.             lista[i]=str(lista[i])
  5.     return lista
  6.  
  7. print(conversion_str([0,1,2,3,4,5,6,7,8,9,10]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement