0

For loop and while loop

Can someone teach me how to while loop and for looo?

24th Jul 2019, 4:10 PM
Henry Diaz
Henry Diaz - avatar
7 Respuestas
+ 3
just write code and test it ... 😅
24th Jul 2019, 4:27 PM
Anton Böhler
Anton Böhler - avatar
+ 2
You will use loops in virtually every code you ever write, so really everything will become a practice. Go for the most simple coding challenges, either from here or on sites like project euler or hacker rank, and while you try to find the solution, you'll naturally come to think: Hey, I'm gonna need a loop here!
24th Jul 2019, 4:53 PM
HonFu
HonFu - avatar
+ 2
Go on with it - it's one of the few things that become even more fun, the more you learn about it. 🙂
24th Jul 2019, 5:08 PM
HonFu
HonFu - avatar
+ 1
do the tutorial of sololearn ... otherwise: while condition: repeat the entended code here for i in iteratable: repeat the entended code here and i will be equal to a certain element of the iteratable
24th Jul 2019, 4:15 PM
Anton Böhler
Anton Böhler - avatar
+ 1
thanks man will do, just ive been finding this stuff really interesting ive never been a code guy but its kinds fun
24th Jul 2019, 5:07 PM
Henry Diaz
Henry Diaz - avatar
0
do you know anywhere on here or anywhere else that I can practice this
24th Jul 2019, 4:19 PM
Henry Diaz
Henry Diaz - avatar
0
okay I guess I just wanted some more practice casue im currently taking a scripting class right now
24th Jul 2019, 4:35 PM
Henry Diaz
Henry Diaz - avatar