+ 1
python range
Why is that not possible to create a list using a range and a step with float number. For example, y = list(range(10, 15,.5)) print(y) throws this error: TypeError: 'float' object cannot be interpreted as an integer Is there any way to handle this issue using a range function? thanks!
2 ответов
- 1
You have 15,.5
+ 2
thanks, @~swim~
that worked and make a lot of sense