Case Statements
Case Statement
- Python 3.10 added Match Case statements
 
x = "hello" 
match x:
	case "hello":
		print("hello")
	case "hi":
		print("hi")
	case _:
		print("default case")
x = "hello" 
match x:
	case "hello":
		print("hello")
	case "hi":
		print("hi")
	case _:
		print("default case")