Why do I get this error?
import time, os, random
#Functions for Betting Arena.
level_counter = 2.5
lvlbar = 0
lvlneed = 2
upgrades = 
level = 1
money = 57
job = 'McDonald\'s Employee'
daily_earnings = 9
print('The horse races are about to begin! Pick your horse and the amount you would like to bet.')
print('Horses are as follows:')
print('1)The Speedy Lightning')
print('3)The Trashy Terror')
print('4)The Slippery Shadow.')
horse = input('Which horse are you gonna bet on: ')
if horse == '1':
print('You bet on The Speedy Lightning!')
elif horse == '2':
print('You bet on the Hitmarker!')
elif horse == '3':
print('You bet on... The Trashy Terror..?')
elif horse == '4':
print('You bet on The Slippery Shadow!')
if job == 'McDonald\'s Employee':
print('Flip the burgers!')
user = input('Choice: ')
I keep on getting local variable defined in enclosing scope.