YoVDO

The New Match-Case Statement in Python 3.10

Offered By: James Briggs via YouTube

Tags

Python Courses Tuples Courses

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

Artificial Intelligence for Robotics
Stanford University via Udacity
Intro to Computer Science
University of Virginia via Udacity
Design of Computer Programs
Stanford University via Udacity
Web Development
Udacity
Programming Languages
University of Virginia via Udacity