Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
If python interpretor finds undefined variable, it raises [...] exception.
Answer
NameError

Question
If python interpretor finds undefined variable, it raises [...] exception.
Answer
?

Question
If python interpretor finds undefined variable, it raises [...] exception.
Answer
NameError
If you want to change selection, open original toplevel document below and click on "Move attachment"

Parent (intermediate) annotation

Open it
. This global namespace is the module in which the function was defined. If the name is still not found, it searches the built-in namespace. Finally, if this fails then the interpreter raises a <span>NameError exception. Consider the following code: a=10; b=20 def my_function(): global a a=11; b=21 my_function() print(a) #prints 11 print(b) #prints 20 <span>

Original toplevel document (pdf)

owner: kkhosravi - (no access) - PYTHON_DATA_STRUCTURES_AND_ALGORITHMS.pdf, p27

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.