

Video Training → Real Python - Emulating switchcase Statements in Python
Published by: voska89 on 29-08-2021, 07:22 |
0

MP4 | Video: h264, 1920x1080 | Audio: AAC, 44.1 KHz, 2 Ch
Genre: eLearning | Language: English | Duration: 4 Lessons (10m) | Size: 26.6 MB
Python doesn't have switch/case statements so it's often necessary to write long if/elif/else chains as a workaround. Here's a little trick you can use to emulate switch/case statements in Python using dictionaries and first-class functions.

