+ 2
Looping ,,why this code is not working
#basic examples of looping #printing patern of triangle print("no. of rows of triangle you want") n=int(input()) for i in range(1,n+1): for j in range(1,i+1): print("*",end="") print("")
1 Antwort
+ 1
Should look like this:
for i in range(1,n+1):
for j in range(1,i+1):
print("*",end="")
print("")
https://code.sololearn.com/cT5BRIbkia21/?ref=app