0

loops in pythone

how to use loops in pythone.

19th Sep 2018, 9:49 AM
Tanzeel Amin
Tanzeel Amin - avatar
3 Answers
19th Sep 2018, 11:39 AM
Alireza Ghazavi
Alireza Ghazavi - avatar
0
Then you have while loops which iterate while a condition is met. E.g. x=0 while x <= 100: if x%2 == 0: print (x) x += 1 Prints even numbers and could have also been done with a for loop using the range function.
19th Sep 2018, 1:33 PM
benjamin
0
thanks to all
19th Sep 2018, 2:01 PM
Tanzeel Amin
Tanzeel Amin - avatar