I'm stuck again! I've tried to port mario into python but I'm totally stuck on the first line! I'm trying to use 'cs50.get_int()' as shown but my programme doesn't prompt for the number, then if I put the number (x) in anyway (at the blank cursor) then it just shows 'Height: x' and closes....help?!!!!! My code is:
`import cs50
def main():
while True:
i = cs50.get_int()
print("Height: {}".format(i))
#if input is correct
if i > 1 or i < 24:
break
#print the hashes
x = i + 1
for k in range (x):
a = x - k
print(' ' * a, end="")
print('#' * k)
print('#' * x)
if __name__ == "__main__":
main()`