SarkariResultess QA Bank

UnboundLocalError का common कारण क्या है? कौन सा code pattern सही समाधान है?

Other 0 Views Verified
UnboundLocalError का common कारण क्या है? कौन सा code pattern सही समाधान है?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified Correct Answer

A local variable is read before it is assigned inside the function

A local variable is read before it is assigned inside the function
Additional Explanation
Function scope में assignment local variable बनाता है।
Verified

lists cannot be local

lists cannot be local
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

all globals are deleted

all globals are deleted
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

Python cannot use functions

Python cannot use functions
Additional Explanation
यह विकल्प सही समाधान नहीं है।