for i in range(5): print("*") | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

for i in range(5): print("*")

What is wrong here

8th Aug 2019, 2:50 PM
sathya
sathya - avatar
2 Answers
+ 9
you have to make an indent after for... : may be you want something like this: for i in range(5): print("*") for i in range(5): print("*" * i)
8th Aug 2019, 2:54 PM
Lothar
Lothar - avatar
+ 4
Remember about indentation. The second line has to be indented.
8th Aug 2019, 2:54 PM
Qermon
Qermon - avatar