0

What are differences

Means:'for loop' and 'while loop'

20th Apr 2020, 9:12 AM
Tin Zaw
Tin Zaw - avatar
3 ответов
+ 6
Tin Zaw u ask many basic things, that are handled in our Python lessons. Please give it a try. U can try a shortcut on each module and so shorten the very basics as I see u have some python knowledge.
20th Apr 2020, 9:18 AM
Oma Falk
Oma Falk - avatar
+ 4
I read an article that described 'for' loops as best used when you have a known number of itetations to achieve a result. 'While' loop is best used when you have an unknown number of iterations to achieve a result. An example of using 'while' is when prompting user input to 'Guess a Number'. The code will keep prompting input until the number is achieved
20th Apr 2020, 11:12 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
Thank you
20th Apr 2020, 9:19 AM
Tin Zaw
Tin Zaw - avatar