Python *args and **kwargs Made Easy
I do not know about you, but every time I saw some function with *args and **kwargs as parameters, I’d get a little scared. I’ve even “used” them while doing some backend work with Django without understanding a thing. If you’re a self-taught developer like me, I know you’ve been there too.
30 Simple Tricks to Level Up Your Python Coding
In this article, I’m sharing some idiomatic usages that I have accumulated over the last several years, which I hope will help level up your Python coding.
What does "if __name__ == '__main__' " do in Python?
One of the most common, and most misunderstood, lines in Python involves a variable name and a string 'main', and typically appears at the end of a module file. What does this line do? Is it required? How does it work?
Pytest for Beginners
Well-written tests decrease the possibility of something breaking in a production environment by ensuring your code is doing what you expected. Tests also help you cover marginal cases and make refactoring easier. In this article, we'll look at how to use pytest, so you'll be able to use it on your own to improve your development process and follow more advanced pytest tutorials.
Send Emails with Gmail API
Gmail is one of the most popular email services so far, and you will very probably want to use it as a mailbox for your web or mobile app. It is safe and credible, which is crucial to prevent your emails from going into the spam folder. That’s why we decided to flesh out how to send emails with Gmail API.
Achieving High Performance with Code Generation
Python is a beautiful programming language, but it is not known for its speed. That said, it has many other excellent features, and so for applications where raw performance is not the dominant problem, it is possible to write very high-quality production stacks in this language. But sometimes, deep inside your stack, there’s an inner loop that you can’t ignore, and it’s time to write high-performance Python.
Memory Management in Python
Memory management is the process of efficiently managing computer memory (RAM). It involves allocating a piece of memory at run-time to the program when the program requests it and freeing the allocated memory for re-use when the program no longer needs it.
Python Programming Exercises, Gently Explained
Many books and websites have aggressive programming challenges for top coders. However, Python Programming Exercises, Gently Explained is for the rest of us. We want challenges that improve our coding skills, not leave us confused and discouraged.
Ultimate Flask Tutorial 2022
In this tutorial I show you how to develop and build the basics for a mobile friendly website. Everything I show you here, I have gathered in the internet, so it is just a collection and step-by-step guide for you.
thefuck: Magnificent app which corrects your previous console command.
The Fuck is a magnificent app, inspired by a @liamosaur tweet, that corrects errors in previous console commands.
faker: Python package that generates fake data for you.
Whether you need to bootstrap your database, create good-looking XML documents, fill-in your persistence to stress test it, or anonymize data taken from a production service, Faker is for you.
If you have a blog and want your article published in an upcoming Issue, email us to firstname.lastname@example.org.