Ad
Code
Diff
  • def is_equal(a, b):
        return 'yes' if a == b else 'no'
    • def is_equal(a, b):
    • return {False: "yes", True: "no"}[a != b]
    • return 'yes' if a == b else 'no'