0
Is my code right logically?
right = 1 wrong = 2 if right > wrong print(“You are right") else; print(“you are wrong")
1 Antwort
+ 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")