Functions like this are called void, and they return None, Python’s special object for “nothing”. Here’s an example of a void function: >>> def sayhello(who): print ‘Hello,’, who + ‘!’ print ‘What a lovely day.
Functions like this are called void, and they return None, Python’s special object for “nothing”. Here’s an example of a void function: >>> def sayhello(who): print ‘Hello,’, who + ‘!’ print ‘What a lovely day.