Looking to use variables defined earlier in the code when calling a function later in the code.
variable = 'a'
results = variable_func()
The user has the ability to specify 'variable' in my example. Depending on what the choose, the function will be slightly different. Therefore, I want to be to use the variable when I call the function instead of having to use a bunch of different if then statements.
Is this possible?
'a'as an argument to the function call?variableis?variableis set to?