Chapter 3 - Calling Functions Flashcards
1
Q
Whats a function?
A
They are an example of abstraction.
2
Q
Why do we use functions?
A
They allow us to refer to a block of python code by name, and ask for that code to be executed.
3
Q
What is a function’s return value?
A
The output value that was produced.
4
Q
What are arguments?
A
Input to functions in python.
5
Q
What python function displays text on the console?
A
The print() function
6
Q
What python function retrieves user input from the console?
A
The return keyword