PY-05-P1: Functions Flashcards
call the class by its name with a value corresponding to:
__intit__
Use ____ to access object attributes
< object name > . < attritbute >
is a blueprint for an object
class
Blocks of code with reusuable logic. define functionality in the program.
Functions
Separate programs into small, readable, and manageable sections
Functions
A function must be defined first with ___
def
The ____ keyword is used to pass the values
Return
____ defines a function
def
___ ends the execution and returns the result
return
___ is not a value and refers to empty data
None
___ is what defines the visibility of a variable
Scope
___ scope is the main scope of the program
Global Scope
____ keyword is used to modify a global variable in the main scope of a program
Global keyword
It returns a different result depending on the execution state of a file
__name__
where should imports be on a program
at the beginning of a program