I'm new to python and I'm working on creating a monopoly like game and am working on the settings aspect of the program and I have a function that asks the user what they want to put in for each setting I am then using another function to import those settings to a text file so they can be stored for later use and also have them be used by the program as settings. Here is where my problem comes I anticipate to have around 15 or so set up questions and the only way I can think of bringing them out of the function to be used in another one and also import them into the global scope so they can be used by the program, is to use return is there another way to do this or would I just have to use return for every variable
Thanks,
# Settings file, if user chooses to run setup this is all the setup
questions
def gameSettingsSetup():
print("Lets setup")
numPlayers = int(input("How many real players are playing: "))
numAIplayers = int(input("How many AI players will be playing?:
"))
AILevel = input("What AI difficulty level would you like?: ")
# Game settings all the main game settings
# sends over the settings into the text file
def gameSettingsSave():