Question · Python course · Module 1: Python Basics
print vs return
How does print() differ from return?
Answer options
- No difference, they work the same
- print displays text, return gives back a value
- return displays text, print gives back a value
- Both stop the program
Show the answer
Correct answer:
- print displays text, return gives back a value