Help me in my program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Help me in my program

Hey I was trying to write my first pattern program in python but it is displaying an error. Can you pls help me with it? https://code.sololearn.com/c8jNLBL8o9P4/?ref=app

6th Apr 2020, 3:28 PM
Abhiraj Ghumare
Abhiraj Ghumare - avatar
3 Answers
+ 2
Change the square bracket after the range to parenthesis. Parentheses are used for functions and not square brackets. Something like this... for i in range(5): for j in range(i): print("*") print() #hope it helps.
6th Apr 2020, 3:32 PM
Jolomi Tosanwumi
+ 2
Please Use parentheses in range function.. range(I)
6th Apr 2020, 3:34 PM
ANJALI SAHU
0
Thank you very much
6th Apr 2020, 3:30 PM
Abhiraj Ghumare
Abhiraj Ghumare - avatar