Generators in PythonAll new Python programmers stumble upon generators at some point. This is one of the more complex topics in Python. In this article, I will explain what generators are, where they are used, and, most importantly, how to use them. A brief lecture abou...Jul 13, 2024 · 13 min readlkarev.hashnode.dev
Demystifying list comprehensions in PythonIf you are new to Python, you might have stumbled across "list comprehension". I know that for more experienced Python developers, this is an easy concept, but from my experience, most newcomers to Python struggle with it. My goal with this article i...Apr 13, 2024 · 13 min readlkarev.hashnode.dev
CodeBytes: Transform your Python code with functional programmingWhile I was writing code for my "markdown2gist" project (a small Python script that extracts code blocks from Markdown files and uploads them as a Github Gist), I had to write a function that extracts the code blocks from the contents of the markdown...Feb 23, 2024 · 4 min readlkarev.hashnode.dev
7 easy* ways to make your code easier to debug"Debugging is like being the detective in a crime movie where you are also the murderer." Filipe Fortes We all know that debugging takes time. However, there are a few tricks to write our code in such a way, which will save us time debugging. This ...Feb 4, 2024 · 18 min readlkarev.hashnode.dev
How I scrapped 1000 multi-lingual news articles ?How hard can it be — is should be easy with Python, right ? Actually, it was not so trivial — let’s take a deeper look. Photo by AbsolutVision on Unsplash Why I needed to scrape 1000 news ? My goal was to create a neural-network which can correctly c...Jul 29, 2022 · 6 min readlkarev.hashnode.dev