The New Match-Case Statement in Python 3.10
Offered By: James Briggs via YouTube
Course Description
Overview
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
Related Courses
Learn to Program: The FundamentalsUniversity of Toronto via Coursera Python Data Representations
Rice University via Coursera Introduction To Haskell Programming
Chennai Mathematical Institute via Swayam Python Functions, Files, and Dictionaries
University of Michigan via Coursera Python Data Structures
University of Michigan via edX