Iteration Examples Flashcards
1
Q
How to set range in for loop ?
A
We have two methods: 1. for x in [1,2,3,4,5]: print(x) 2. for x in range(1,10): print(x)
Python Learning > Iteration Examples > Flashcards
How to set range in for loop ?
We have two methods: 1. for x in [1,2,3,4,5]: print(x) 2. for x in range(1,10): print(x)