Mar-08-2019, 08:29 PM
Within the function you reference param1 as param1, and input as input. That's what the def line does, it defines the names for the parameters given, and any defaults.
Note that input is a bad parameter name. There is a built-in function named input. If you name a parameter input, then you can't access the built-in input from within the function. That may not be a problem here, but it's a good thing to avoid in general.
Note that input is a bad parameter name. There is a built-in function named input. If you name a parameter input, then you can't access the built-in input from within the function. That may not be a problem here, but it's a good thing to avoid in general.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures