What is a void function example?

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.

Sizin İçin Seçtik  Patavatsız ne demek?

Leave a Reply

Your email address will not be published. Required fields are marked *