python match case
# example for a Python 3.10.x match...case block
string = input("Enter a letter: ")
match string:
case "a":
print("You entered a!")
case "b":
print("You entered b!")
case _: # this is for unknown/wildcard inputs
print(f"Unknown input: {string!r}")