SarkariResultess QA Bank

UnboundLocalError का common कारण क्या है? production में इसे safely कैसे fix करें? — error आने पर developer क्या करे?

Other 0 Views Verified
UnboundLocalError का common कारण क्या है? production में इसे safely कैसे fix करें? — error आने पर developer क्या करे?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

Python cannot use functions

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

all globals are deleted

all globals are deleted
Additional Explanation
यह विकल्प सही समाधान नहीं है।
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 बनाता है। पहले traceback की exact line और input value check करें।
Verified

lists cannot be local

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