Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

The New Match-Case Statement in Python 3.10

James Briggs via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the new match-case statement introduced in Python 3.10, a powerful upgrade to traditional switch-case functionality. Learn about the history of switch statements in Python, from the rejected PEP 3103 to the implementation of Structural Pattern Matching in PEP 634. Discover how to use this feature through practical examples, including tuple matching and a comparison between if-else and match-case implementations. Gain insights into the logic flow and advantages of this new syntax, which positions Python at the forefront of pattern matching capabilities in programming languages.

Syllabus

Intro
Switch-Case
Flow of Logic
Second Example Tuples
Final Example Setup
Final Example If-Else Version
Final Example Match-Case Version

Taught by

James Briggs

Reviews

Start your review of The New Match-Case Statement in Python 3.10

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.