def AISection():
    global AI1, AI2, AI3
AI1 = 0
AI2 = 0
AI3 = 0
print("""How many AIs do you want to play with?
Choices:
1. One
2. Two
3. Three""")
while True:
    UserInput = eval(input('Answer goes here:'))
if UserInput.lower() == 'one':
    AI1 = 1
break
Python: How do you make a variable = 1 and it still being that way in a different def block? (For a game)