For the sake of completeness, you could also do:
from cs50 import get_int
h = get_int("Height: ")
But directly importing functions (or classes, etc) from a module is not recommended. It'll pollute your global namespace, and soon you'll have no idea where a given function came from.
It's much better to stick to importing modules only and using prefixed namespaces, such as
cs50.get_int(). You immediately knows from which library any functions came from.
That said, there are a few other issues in the code you pasted:
Proper indentation is a good practice in all languages, but in Python it is required. There are many indentation errors in your code.
You don't need to
print("Height") and then call
get_int(). In both C and Python,
get_int() takes a prompt as an argument and prints that for you. And IIRC, that is a required argument.
No need to use issuing a 3rd (empty)
print() for the newline, just remove the
end="" in your 2nd
print() and it will print the trailing newline for you.
IIRC, 0 and 23 are not the valid range for mario.
Anyway, I realize this is a 2017 question, and the OP is probably graduated by now. But it might help future readers to know what to fix if they read this code.