What is the key difference between return x ** 2 and print(x ** 2) inside a function?
return x ** 2
print(x ** 2)
They always have exactly the same effect on the caller.
Both statements automatically store the value in a global variable.
print returns the displayed value, while return writes it to the screen.
print
return
return sends a value to the caller and ends the function, while print only displays a value and the function continues unless control flow ends.