79527579

Date: 2025-03-22 14:21:28
Score: 1
Natty:
Report link

You have to add brackets. Currently you're comparing 0 != a.

Fix:

a = 5
b = -5

if (b > 0) != (a > 0):
  print("Hi")
else:
  print("Bye")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: allesmoegliche