Advertisements
Advertisements
प्रश्न
Find the errors from the given code.
if (a>b)
print a:
else if (a<b)
print b:
else
print "both are equal"
अति संक्षिप्त उत्तर
Advertisements
उत्तर
Errors: Missing colons after if, elif and else; else if must be elif; colons must not follow print; indentation is required; Python 3 requires print().
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
