Cohort 1: Web Development with Python (AI Technologies)

Match case

The introduction of the match case statement that enables a powerful pattern matching feature in Python. It helps us achieve more expressive conditional checks. Unlike using if-elif-else statements that can be cumbersome for more complex conditional statements, this statement is more elegant and flexible.

x=int(input("enter the number"))
match x:
        case 10:
            print("It's 10")
        case 20:
            print("It's 20")
        case _:
            print("It's neither 10 nor 20")


Meeting link is not available right now.
Date
Duration 120 Minutes
Meeting Link