What is the difference between print and return?Show Answer
Return makes a result value available to whoever called the function. Print
creates a line of output for the program as a whole. Return ends the
current function, but print doesn't.
How do parameters get their values?Show Answer
Parameters get their values when a function is called. The code that calls
the function puts the values in the parentheses used for the function call.