Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # float_range.py
- def float_range(start, stop, step=1.0):
- while start < stop:
- yield start
- start += step
- for x in float_range(1.0, 12.5, 0.5):
- print(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement