Ad

using lists

Code
Diff
  • def is_equal(a, b):
        return ["no", "yes"][int(a == b)]
    • def is_equal(a, b):
    • match (a == b):
    • case (1):
    • return 'yes'
    • case (0):
    • return 'no'
    • return ["no", "yes"][int(a == b)]