0
Is my code right logically?
right = 1 wrong = 2 if right > wrong print(âYou are right") else; print(âyou are wrong")
1 Answer
+ 11
Your logic is fine, but you are missing colons and indentations. The semicolon after else should also be a colon.
if right > wrong:
print(âYou are right")
else:
print(âyou are wrong")