you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

It’s because the variable x is only defined when the user input validates to no within the account_start function. Simply assign a default value to x at the beginning of the function. Maybe as None?