0
Infinite for in python3
is there a way to make an infinite for loop?
3 Answers
+ 8
Try this:
for i in iter(int, -1):
pass
+ 1
Why? Itâs better to use a while loop such as while true:
- 1
I donât think itâs possible in python
is there a way to make an infinite for loop?