Chapter 3 - Functions Flashcards

1
Q

Functions

A

Refers to a block of Python code by name, and ask for the code to be ran

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

Arguments

A

Input to functions

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

Return Value

A

Output the function produced

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

Nested Function Call

A

When a call to one function is made as part of a call to another function

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

Procedure

A

A function that does not return a value

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

max

A

Returns max value of all arguments

Any number of arguments

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

min

A

Returns minimum value of all arguments

Any number of arguments

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

pow

A

Returns the value of x raised to the power of y

2 arguments

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

type

A

Returns data type of its argument

1 argument

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

int

A

Converts the argument into an integer data type

1 argument

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

float

A

Converts the argument to a float-point data type

1 argument

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

str

A

Converts the argument to string data type

1 argument

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