0
I think you wanted to write: 'Arguments and variables can't be referenced outside of the function definition.' That means that all the names of variables you use in the function are unknown in your main code. For example: def f(x, y): z = 5 return x + y + z If you try to use x, y or z in your main code, you'll get an error. That is, if your main code doesn't have its own variables x, y and z; in that case you could use them. The x, y and z of the function belong to the function and have nothing to do with any variable in the main code.
12th Feb 2019, 6:49 PM
HonFu
HonFu - avatar