SarkariResultess QA Bank

IndentationError को कैसे ठीक करें? इसका quick fix क्या है? — error आने पर developer क्या करे?

Other 0 Views Verified
IndentationError को कैसे ठीक करें? इसका quick fix क्या है? — error आने पर developer क्या करे?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

if active print('yes')

if active print('yes')
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified Correct Answer

if active: print('yes')

if active: print('yes')
Additional Explanation
Block statements में consistent indentation जरूरी है। पहले traceback की exact line और input value check करें।
Verified

if active: print('yes')

if active: print('yes')
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

if active: print('yes') with mixed tabs/spaces

if active: print('yes') with mixed tabs/spaces
Additional Explanation
यह विकल्प सही समाधान नहीं है।