I'm getting an extra new line just after getting input. Help me fix it
while True:
n = cs50.get_int("Height: ")
if n > 0 and n < 9:
break
for i in range(n + 1):
if n == 0:
continue
print(" "*(n-i),end="")
print("#"*i)
I'm getting this output
Height: 4
#
##
###
####