Python Match Statements
How to Use Match Statements in Python with example.
x = int(input("enter your data: "))
match x:
case 0:
print("x is zero")
case 4:
print("x is 4")
case _:
print(x)
How to Use Match Statements in Python with example.
Comments
Post a Comment