We'll use Poetry to start a simple project, manage dependencies and publish it on PyPI. We'll also integrate Pytest, Black, and Flake8 into VSCode directly from a Virtual Environment.
In this short article, we are going to make some for loops and rewrite them, step by step, into comprehensions. If everything goes well, at the end and as a bonus, we will know how to do the same with sets and dictionaries.
*args and **kwargs may seem scary, but the truth is that they are not that difficult to grasp and have the power to grant your functions with flexibility and readability.
Swim between bookmarks in the terminal.
As a self-taught Python Developer and a newbie myself, I think that one of the most important things when starting is to surround ourselves with all things Python related: blogs, developers, projects, and YouTube channels are just a few examples. In this post, I want to share some of the "assets" I collected to this point.
Anyone can forget how to make character classes for a regex, slice a list or do a for loop. This cheat sheet tries to provide a basic reference for beginner and advanced developers, lower the entry barrier for newcomers and help veterans refresh the old tricks.