Advertisement
Guest User

Untitled

a guest
May 26th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. numero = raw_input("ingrese un numero: ")
  2. def separador(numero):
  3. numero+="0"
  4. l = []
  5. creador = ""
  6. for x in numero:
  7. if x !="0":
  8. creador+=x
  9. else:
  10. l.append(creador)
  11. creador=""
  12. return l
  13. menores = []
  14. for x in separador(numero):
  15. menor = float("inf")
  16. for y in x:
  17. if float(y)<float(menor):
  18. menor = y
  19. menores.append(int(menor))
  20. print menores
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement