0
I need help
what is the best way to practice different kinds of loops, l have exams next week and its on paper so , l don't know how to deal with it
5 Respostas
+ 1
R Alotaibi use the code-playground and create codes with various loops as practice.
+ 1
Hello R Alotaibi !
Try Sololearn Playground it's the best platform to practice on.
You may also review written codes from beginners' level to advanced.
AlltheBest.
+ 1
realpython.com/python-for-loop/
0
Not sure what your instructor is wanting to see from you. Obviously there are only a few types of loops. You could write a simple application that demonstrates each.
for loops
while loops
do while loops
generators
But whether they want to see a simple candy machine app or perhaps something more complicated such as an airline reservation system with data organized into objects. A simple candy machine would be able to demonstrate loops simply by giving the app the ability to add products, set prices, list items, and perhaps give some basic report on sales or income.
Even the smallest app might take you a few hours to do. A larger app could take a few weeks to get it right.
If you only need to demonstrate the loops, then write one loop example in one function and another example in another function. It could be very simple and straight forward.
0
why doesnt input work in python