Ad
  • Custom User Avatar

    Your code is wrong. See the input format:

    test.assert_equals(open_or_senior([(45, 12),(55,21),(19, -2),(104, 20)]),['Open', 'Senior', 'Open', 'Senior'])
    

    It is a list of tuples. So, data[0] is a tuple, and you can't use >= as the error says. And the output should be a list of strings. The kata is fine, your code is not. Please read this: https://docs.codewars.com/training/troubleshooting