💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide. In this video, I show an example of structural pattern matching, a pretty powerful feature that's part of Python 3.10. There are a couple of really nice things you can do with this, and although it resembles the traditional switch statement, it goes far beyond what the 'wicked switch' can do. The code I worked on in this video is available here: https://github.com/ArjanCodes/2021-structural-pattern-matching. 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses/ 🔖 Chapters: 0:00 Intro 1:02 Explaining the example 1:35 Simple pattern match example 3:37 A more elaborate match example 7:49 Match with conditions 9:30 Match with objects 14:42 Caveats of using structural pattern matching 16:11 Other Python 3.10 features & final thoughts #arjancodes #softwaredesign #python