Chapter 3 - Functions Flashcards
Functions
Refers to a block of Python code by name, and ask for the code to be ran
Arguments
Input to functions
Return Value
Output the function produced
Nested Function Call
When a call to one function is made as part of a call to another function
Procedure
A function that does not return a value
max
Returns max value of all arguments
Any number of arguments
min
Returns minimum value of all arguments
Any number of arguments
pow
Returns the value of x raised to the power of y
2 arguments
type
Returns data type of its argument
1 argument
int
Converts the argument into an integer data type
1 argument
float
Converts the argument to a float-point data type
1 argument
str
Converts the argument to string data type
1 argument