Fix the indentation to equal spaces. The if block inside the try/except must be indented.
You can't use just input() in a script without an assignment.
You can't use just input() in a script without an assignment.
x = input()not just
input()