Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def generar_rango_flotante(inicio, fin, incremento):
- x = inicio
- while x < fin:
- yield x
- x += incremento
- for n in generar_rango_flotante(0, 4, 0.5):
- print(n)
- L = list(generar_rango_flotante(0, 1, 0.3))
- print(L)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement