I’m trying to check if “event” is equal to any of the possible combinations of strings

clean?

match event.split():
    case ["Start"]:
        start()
    case ["Back"]:
        back()
    case ["View", c, "Cars"] if c in Car.colors:
        run()
2 Likes