+ 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
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.
+ 2
Please Use parentheses in range function..
range(I)
0
Thank you very much