My issue
My code
rows = int(input())
for i in range(rows)_
for j in range(i+1):
print(j+1, end="") #end ="" means the output should end with an empty string
print("")
Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone
@raavi2003
You have not updated the semicolon required at the end of for loop statement.
Here is my code for reference.
rows = int(input())
for i in range(rows): # : was missing here
for j in range(i+1):
print(j+1, end="") #end ="" means the output should end with an empty string
print("")