Functions Flashcards

1
Q

Define a function:

A

def

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

def stands for:

A

define a function

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

Invoke a function:

A

def thing( ):

print(‘Hello’)

print(‘Fun’)

thing( ) Hello

print(‘Zip’) Fun

thing( ) Zip

Hello

Fun

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

When a function does not return a value, we call it a?

A

Void

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

Functions that return values are:

A

“Fruitful” functions

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

Void funcations are:

A

“Not fruitful”

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