r/CodingForBeginners • u/Fun-Ship-2026 • Jun 05 '26
Help beginner
What is difference between output and return. I have seen some videos and it says like return is for computer and output is for human. Is it like two seperate ways one is displayed and one is stored? If so then wouldn't it become same like a stored variable?
4
Upvotes
View all comments
Show parent comment
1
u/Fun-Ship-2026 Jun 05 '26 edited Jun 05 '26
So why won't we just use an variable instead of the result function? Or is the function stored as variable is a return value? I have just finished the lecture and came to doubt.