Writing a Function with return
Open answerWrite a function square(x) that returns the square of x (rather than just displaying it), then explain the difference with a function that would only display the result with print.
Write a function square(x) that returns the square of x (rather than just displaying it), then explain the difference with a function that would only display the result with print.