0

Is my code right logically?

right = 1 wrong = 2 if right > wrong print(“You are right") else; print(“you are wrong")

20th Mar 2019, 2:28 AM
Sodium’sChlorideN/A
Sodium’sChlorideN/A - avatar
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")
20th Mar 2019, 2:43 AM
Kishalaya Saha
Kishalaya Saha - avatar