May-25-2019, 01:41 PM
That's because you never call your function. Your print statement is indented under the function. That may be because you are using only a one space indent for the first indent, which makes it hard to see the indent. However, if you unindent that, you'll get an error, because a and b are not defined in the global namespace. It's not clear why you have parameters, if you are going to read them from a file, and thus discard whatever was passed to the function. You also would want to read from a file for recursion, because you would be realoading the values every time you recursed, leading to an infinite recursion. Although, despite the title you are not actually recursing here, so I'm not sure what is up with that.
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