0
How can i make a loop that repeats 10 times without having a counter, so i can put in what i want to not 1,2,3,4...
3 Antworten
+ 3
Some functions can be called with multiples arguments separated by a comma, and range() is one of them. let's you change the integer passed to range() to follow any sequence of integers, including starting at a number other than zero. For example:
for i in range(12, 16):
print(i)
- 2
use range()
- 2
a for loop with range()