What wrong with the code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What wrong with the code

for i in range(5) print(i)

26th Jan 2024, 12:04 PM
Python Vietnam
Python Vietnam - avatar
2 Answers
+ 2
D Doyen , You added the colon : but forgot the (5). You can edit any comment after submitting it using Edit in the three-vertical-dots menu to the right of the comment.
26th Jan 2024, 7:03 PM
Rain
Rain - avatar
+ 2
No full colon It should be for I in range(5): print(I)
26th Jan 2024, 12:38 PM
D Doyen
D Doyen - avatar