r/AskProgramming • 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?
1
Upvotes
View all comments
Show parent comment
1
u/KingofGamesYami Jun 05 '26 edited Jun 05 '26
Scratch doesn't have any blocks that interact with the standard output stream. The closest approximation (and this is not close) would be defining a list and appending items to that list.
In the early days of programming, that's exactly what we did, as functions really hadn't been defined as a concept yet.
The reason we have (and use) return values is because it carries significantly more semantic meaning for humans interacting with the code.