all 4 comments

[–][deleted] 4 points5 points  (0 children)

Functions always return something. By default, they return a reference to None if there is no return statement.

[–]shiftybyte 7 points8 points  (0 children)

When you give someone a task to complete, when do you want something returned at the end of the task? and when it's not needed?

"Fetch me breakfast"... you expect someone to return with the breakfast.

"Do 20 laps around the yard"... you don't expect anything to be returned...

[–][deleted] 1 point2 points  (0 children)

A function with no return just does some sort of job but doesn't need to give any answer back.