Most common programming languages feature the switch-statement, while Python doesn’t. At first glance, you maybe ask why Python doesn’t support such a common and basic control pattern. This post will explain it and show alternatives for the switch statement!
Python is a great language in my eyes, it’s simple to understand, write and its indentation forces at least a bit of styling into the code. But when it comes to underscores, there’s often confusion.
Python differs from other programming languages in many ways, one of them is dynamic typing. You can’t specify explicit types for variables, functions, or any other object. However, since the missing type declarations can be confusing and misleading, Python 3.5 introduced Type Hints!
Concurrency is a powerful concept to execute various commands parallely. It is available in nearly any programming language but is often difficult to understand or implement. I will focus on explaining this in the context of a current Windows OS and the concurrency how-tos will use Python as a language.
FileNotFoundError: [Errno 2] No such file or directory: ‘/opt/hostedtoolcache/Python/3.7.8/x64/lib/python3.7/site-packages/PyYAML-5.3.1-py3.7-linux-x86_64.egg If you encounter this error on Github it is possibly because Github recently updated from Python 3.7.7 to Python 3.7.8 and PyYAML produces an error therein. The easiest way to fix this is by changing the used Python version explicitly back to 3.7.7. Old config: We […]