Learn the four main approaches to string formatting in Python, as well as their strengths and weaknesses. You’ll also get a simple rule of thumb for how to pick the best general purpose string formatting approach in your own programs. [ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet […]
How to Create an Index in Django Without Downtime
Managing database migrations is a great challenge in any software project. Luckily, as of version 1.7, Django comes with a built-in migration framework. The framework is very powerful and useful in managing change in databases. But the flexibility provided by the framework required some compromises. To understand the limitations of Django migrations, you are going […]
Running Python Scripts
One of the most important skills you need to build as a Python developer is to be able to run Python scripts and code. This is going to be the only way for you to know if your code works as you planned. It’s even the only way of knowing if your code works at […]
Python REST APIs With Flask, Connexion, and SQLAlchemy – Part 3
In Part 2 of this series, you added the ability to save changes made through the REST API to a database using SQLAlchemy and learned how to serialize that data for the REST API using Marshmallow. Connecting the REST API to a database so that the application can make changes to existing data and create […]
Python Development in Visual Studio Code (Setup Guide)
In this course, you’ll learn how to use Visual Studio Code for Python development. By following examples, you’ll cover everything from how to install and configure Visual Studio Code for Python development to how to run tests and debug application, so you can use this powerful tool. [ Improve Your Python With 🐍 Python Tricks […]
What Is Pip? A Guide for New Pythonistas
What is pip? pip is the standard package manager for Pyhon. It allows you to install and manage additional packages that are not part of the Python standard library. This tutorial is an introduction to pip for new Pythonistas. In this tutorial, you’ll learn about: Installing additional packages not included with the standard Python distribution […]
Idiomatic Pandas: Tricks & Features You May Not Know
Pandas is a foundational library for analytics, data processing, and data science. It’s a huge project with tons of optionality and depth. In this course you’ll see how to use some lesser-used but idiomatic Pandas capabilities that lend your code better readability, versatility, and speed. [ Improve Your Python With 🐍 Python Tricks 💌 – […]
Get Started With Django Part 1: Build a Portfolio App
Django is a fully featured Python web framework that can be used to build complex web applications. In this tutorial, you’ll jump in and learn Django by example. You’ll follow the steps to create a fully functioning web application and, along the way, learn some of the most important features of the framework and how […]
How to Stand Out in a Python Coding Interview
You’ve made it past the phone call with the recruiter, and now it’s time to show that you know how to solve problems with actual code. Whether it’s a HackerRank exercise, a take-home assignment, or an onsite whiteboard interview, this is your moment to prove your coding interview skills. But interviews aren’t just about solving […]
Django Migrations 101
Since version 1.7, Django has come with built-in support for database migrations. In Django, database migrations usually go hand in hand with models: whenever you code up a new model, you also generate a migration to create the necessary table in the database. However, migrations can do much more. With this course you’ll get comfortable […]
Documenting Python Projects With Sphinx and Read The Docs
In this video series we’ll cover creating Python documentation from scratch using Sphinx, as well as getting your code repository hooked up to Read The Docs, to automatically build and publish your code documentation. Note: This course uses Python 2.7 in its coding examples. Resources doctut Example Project doctut Example Docs on Read The Docs […]
An Intro to Threading in Python
Python threading allows you to have different parts of your program run concurrently and can simplify your design. If you’ve got some experience in Python and want to speed up your program using threads, then this tutorial is for you! In this article, you’ll learn: What threads are How to create threads and wait for […]
Intro to Object-Oriented Programming (OOP) in Python
Object-oriented programming is one of the biggest and most important subjects in all of programming. This series will provide you with a basic conceptual understanding of Object-Oriented Programming so you can take your Python programming skills to the next level. You’ll learn how to define custom types using classes, and how to instantiate those classes […]
13 Project Ideas for Intermediate Python Developers
Learning the basics of Python is a wonderful experience. But the euphoria of just learning can be replaced by the hunger for hands-on projects. It’s normal to want to build projects, hence the need for project ideas. The problem though is that some projects are either too simple for an intermediate Python developer or too […]
Python Decorators 101
In this course on Python decorators, you’ll learn what they are and how to create and use them. Decorators provide a simple syntax for calling higher-order functions in Python. By definition, a decorator is a function that takes another function and extends the behavior of the latter function without explicitly modifying it. [ Improve Your […]