def function1(): var1 = 1 var2 = 5 result = function2(var1, var2) print(result) def function2(num1, num2): return num1 + num2 function1()in the function definition you can specify positional and/or keyword parameters. Then you will pass actual values as arguments when you call the function
http://stupidpythonideas.blogspot.com/20...eters.html
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs