Chapter 8 More On Functions - William & Mary
chapter 8 More On Functions
Scope
"The Practice of Computing Using Python, 3rd Edition", Punch & Enbody, Copyright ? 2017 Pearson Education, Inc.
Scope
? definition: the set of program statements over which a variable exists, i.e., can be accessed
? it is about understanding, for any variable, what its associated value is
? the problem is that multiple namespaces might be involved
"The Practice of Computing Using Python, 3rd Edition", Punch & Enbody, Copyright ? 2017 Pearson Education, Inc.
Namespaces
? with Python, there are potentially multiple namespaces that could be used to determine the object associated with a variable
? recall that a namespace is an association of name and objects
? we will begin by looking at functions
"The Practice of Computing Using Python, 3rd Edition", Punch & Enbody, Copyright ? 2017 Pearson Education, Inc.
Function Namespace
? each function maintains a namespace for names defined locally within the function
? locally means one of two things:
? a name assigned within the function ? an argument received by invocation of the
function
"The Practice of Computing Using Python, 3rd Edition", Punch & Enbody, Copyright ? 2017 Pearson Education, Inc.
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- chapter 8 photosynthesis biology test
- chapter 8 photosynthesis worksheet answ
- chapter 8 photosynthesis
- developmental psychology chapter 8 quizlet
- chapter 8 photosynthesis answer key
- psychology chapter 8 quizlet
- biology chapter 8 photosynthesis answers
- chapter 8 photosynthesis pdf
- chapter 8 psychology quizlet memory
- psychology chapter 8 quizlet learning
- chapter 8 photosynthesis quizlet
- psychology chapter 8 quiz answers