Home / Questions / Other Python में else का सही syntax क्या है? — error आने पर developer क्या करे? Other 0 Views Verified Python में else का सही syntax क्या है? — error आने पर developer क्या करे? #python #python programming #coding #developer Sarkari Result QA Bank Editorially reviewed exam information Share
Verified Correct Answer if x > 0: print('positive') else: print('non-positive') if x > 0: print('positive') else: print('non-positive') Additional Explanation else उसी if block के बाद indentation level पर आता है। पहले traceback की exact line और input value check करें।
Verified if x > 0 else print('positive') if x > 0 else print('positive') Additional Explanation यह विकल्प सही समाधान नहीं है।