6.2 Print Functions¶
Printing from a function¶
- A common operation for a function is to print text
- A function that only prints typically does not return a value
- A function with no return statement is called a void function, and such a function returns the value None.
Calling a print function multiple times¶
- Program B is much more efficient and clean:
- Another example: