Super new to Python and I just can't figure out what is causing the error message in my code...
It says '[pylint] E0001:invalid syntax (<string>, line 24)'.
Could anyone maybe explain what I'm missing here?
Much thanks!
#########################################
# Draws a mario-style right-side-aligned half pyramid
# of the requested height.
# Restriction: 0 < height < 23
##########################################
while True:
height = int(input("Height: "))
if height > 0 and height < 23:
break
elif height == 0:
print()
print()
print()
print("I have drawn a pyramid with a height of 0!")
print("Isn't it pretty!")
exit(0)
hashes = 2
for i in range(height):
spaces = (height - hashes + 1)
for j in range(spaces):
print(" ", end="")
for k in range(hashes):
print("#", end="" )
print()
hashes += 1