"Invalid Syntax" error despite completely valid syntax

Christian, and other beginners. The python parser is extensively tested. One can be something like 99.9999% sure that reported syntax errors are valid. Also, please reduce examples to the minimum needed to get the claimed misbehavior. Doing so will often reveal the answer.

Also use modern python to get better error messages. In 3.10+:

>>> withdrawal = float(input("How much would you like to withdraw?: $")
... bal -= withdrawal
  File "<stdin>", line 1
    withdrawal = float(input("How much would you like to withdraw?: $")
                       ^
SyntaxError: invalid syntax. Perhaps you forgot a comma?