Feb-11-2019, 09:23 AM
Thanks both for the replies. Here is another part of the lesson that I don't really get. You can see that I had to put a parameter called 'number' into the function definition. But then later on, I called the function with '1' in the function instead of 'number'. How come this doesn't confuse python? After all, I said that 'number' was in there, and not '1'. Is it because I'm no longer defining the function? And now instead, I'm calling it? And thus, it has already integrated 'number' into the function? So now I can put whatever else I want in there when I call it?
def mult_two_add_three(number): print(number*2 + 3) mult_two_add_three(1)