Function - Answers group of statements within a program that perform as specific task
Modularized Program - Answers program where each task within the program is in its own function
Benefits of Using Functions - Answers 1. simpler code
2. code reuse
3. write the code once and call it multiple times
4. better testing and debugging (can test and debug each function individually)
5. faster development
6. easier facilitation of teamwork
7. In a group setting, different team members can write different functions
Void Function - Answers simply executes the statements it contains and then terminates
Value-Returning Function - Answers executes the statements it contains, and then it returns a value
back to the statement that called it.
Function Naming Rules - Answers 1. Cannot use key words as a function name
2. Cannot contain spaces
3. First character must be a letter or underscore
4. All other characters must be a letter, number or underscore
5. Uppercase and lowercase characters are distinct
Function Definition - Answers specifies what function does
def function_name():
statement
statement
Function Header - Answers The first line of a function. Includes keyword def and function, followed by
parentheses and colon