Python -- Defining Functions Flashcards
1
Q
What key word is used to create a function?
A
The ‘def’ keyword
2
Q
What are parameters?
A
Placeholders for the actual values the function needs
3
Q
How to leave a function blank without getting an error?
A
Use the ‘pass’ function under the ‘def’ keyword:
def hello_func():
4
Q
What happens when there is no parenthesis after when a function is called?
A