Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- numero = raw_input("ingrese un numero: ")
- def separador(numero):
- numero+="0"
- l = []
- creador = ""
- for x in numero:
- if x !="0":
- creador+=x
- else:
- l.append(creador)
- creador=""
- return l
- menores = []
- for x in separador(numero):
- menor = float("inf")
- for y in x:
- if float(y)<float(menor):
- menor = y
- menores.append(int(menor))
- print menores
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement