This is the error i get:
Traceback (most recent call last):
File “script.py”, line 1, in
n=int(input())
EOFError: EOF when reading a line
My code is:
n=int(input())
for i in range(1,n+1,1):
for j in range(1,n+1,1):
if j<=i:
print(j,end=’’)
else:
print("*",end=’’)
print()
i didn’t get what is wrong in this code