n=int(input())
for i in range(n):
for j in range(n-i):
print(j+1,end=" β)
for j in range(i):
print(β*",end=" ")
print()
Problem with my code?
Traceback (most recent call last): File βscript.pyβ, line 1, in n=int(input()) EOFError: EOF when reading a line
Hey @ritvikagrawal1, please share the link to your code. This is difficult to understand that which loop you have used for which statement. Please provide the link of the online ide !
Thank you!
I hope your doubt has been resolved.
Happy Learning 