+ 4

Help me solve this problem

i saw this code in the challenges and am trying to get the working, please help me out. https://code.sololearn.com/cnNENE4IX4yg/?ref=app

2nd Mar 2019, 8:56 AM
Buhle 💃💃💃
Buhle 💃💃💃 - avatar
3 Respostas
+ 9
0+2=2 3+2=5 6+2=8 9+2=11 25811 gets printed as0,3,6,9 gives reminder 0 when divided by 3
2nd Mar 2019, 9:07 AM
Peter Stark
+ 5
Your version: for i in range(10): if i%3 == 0 print (i+2) Working version: for i in range(10): if i%3 == 0: print (i+2) You missed one : and your print statement has to be indented further than the if if it's going to be part of the if block.
2nd Mar 2019, 9:03 AM
HonFu
HonFu - avatar
+ 4
oh ok now i get the logic, thing is i thought i was now understanding the forloops but yooooh its still an uphill
2nd Mar 2019, 10:54 AM
Buhle 💃💃💃
Buhle 💃💃💃 - avatar