0% found this document useful (0 votes)
39 views

CISC101 Lesson 20

Functions in Python allow for modular design, verification, testing and readability which is important for team-based and large projects. Every function performs a known task with known inputs and can return values or none. Non-value returning functions are called through statements and written on their own or as part of other statements.

Uploaded by

raasiboi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

CISC101 Lesson 20

Functions in Python allow for modular design, verification, testing and readability which is important for team-based and large projects. Every function performs a known task with known inputs and can return values or none. Non-value returning functions are called through statements and written on their own or as part of other statements.

Uploaded by

raasiboi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Lesson 20 - Functions in Python

Importance of Functions
-

Modular design
Verification
Testing
Readability
Team-based design and large products

Every function
-

Performs a known task


Known inputs
Known returns or none

Non value Functions


Call to a non value returning function is a statement
Written as a statement on its own:
displayWelcome()
Or..
Wake_up-per()

You might also like