print and return can look similar, but they do very different jobs. print shows text on the screen. return hands a value back to the code that called the function.
print
return
def double(n): print(n * 2) result = double(4) print(result)
Only 8
None, then 8
8, then 8
8, then None