Pattern Matching Exercise
Question 1 of 4
What will this pattern matching code output?
def check_value(x):
match x:
case 1:
return "one"
case 2 | 3:
return "two or three"
case _:
return "other"
print(check_value(3))one
other
two or three
An error occurs