Meteorologist and software engineer who likes pineapple-less pizza.
Leverage the subprocess module, but know there's a difference between subprocess.run() and subprocess.Popen()
Caching your program's output can increase significantly. Using Python's functools.lru_cache decorator makes creating caches easy.
We all forget to format, lint, and make sure print statements are removed.
This feature, used in Python 3.10+, is an alternative to if/elif/else blocks. See how case and match statements are used.
There's a major difference between for and while loops, and this explanation hits the key difference.
Here's why you should be using type hinting for your python code - it's nothing but beneficial!
A beginner-friendly guide to why some variables change behind your back (and others don't)
Python relies on you to be trustworthy, but there's more to it.
Here's 6 things that will make you a good engineer, no matter what languages you use.
How catching every exception with ‘except’ in Python can break your code and hide critical errors.