SarkariResultess QA Bank

Python में boolean True कैसे लिखा जाता है? — error आने पर developer क्या करे?

Other 0 Views Verified
Python में boolean True कैसे लिखा जाता है? — error आने पर developer क्या करे?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified Correct Answer

is_active = True

is_active = True
Additional Explanation
Python में boolean literals True और False capitalized होते हैं। पहले traceback की exact line और input value check करें।
Verified

is_active = true

is_active = true
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

is_active = TRUE

is_active = TRUE
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

boolean is_active = True

boolean is_active = True
Additional Explanation
यह विकल्प सही समाधान नहीं है।