Chapter 3 - Calling Functions Flashcards

1
Q

Whats a function?

A

They are an example of abstraction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a function’s return value?

A

The output value that was produced.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are arguments?

A

Input to functions in python.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What python function displays text on the console?

A

The print() function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What python function retrieves user input from the console?

A

The return keyword

How well did you know this?
1
Not at all
2
3
4
5
Perfectly