Python

Our guides to coding in Python will help you improve your programming skills even further.

Page 2

Project dependencies listed on a requirements.txt file with Python logo overlayed
6 Things You Should Know About Python's requirements.txt File

These factors can assist you in efficiently handling project dependencies and preventing compatibility problems.

a default template converted to a custom one
How to Override the Default Templates in django-allauth

The django-allauth’s default templates look blunt and might not fit your needs. Here’s how you can override them.

An image with Django and Django REST framework names overlayed
Consume Django APIs the Easy Way With Django Templates

You can effortlessly consume simple APIs without the need to configure an external frontend. Learn how to use Django templates for API consumption.

notepad, book, recycling, and waste bin icons to depict the Create Read Update Delete operations
Build a CRUD REST API With Class-Based Views in Django REST Framework
API

Follow this step-by-step guide and you’ll have the core of a CRUD API on which to build further.

Golden docker logo on a black background
How to Create Efficient Python Docker Images

Docker images are a powerful tool for distributing your Python projects, but it’s important you keep them as lean as possible.

Hand typing code with Python book on the side
Understanding Shallow and Deep Copy in Python

Sometimes, you’ll want a full copy of an object, other times you’ll want it to use references. See the differences in action.

Binary values projected onto somebody’s back
How to Create Custom Exceptions in Python

Exceptions are a powerful and graceful way of handling errors in your Python programs. Custom exceptions take this power to a new level.

Monitor on a desk with OpenAI logo
How to Analyze Documents With LangChain and the OpenAI API

With a small amount of code and some useful libraries, you can build this powerful document analysis tool.

An image of the Python logo surrounded by binary numbers on a dark background
11 Essential AI and ML Python Libraries

These third-party libraries are an essential part of any AI developer’s toolkit.

By 
Woman's image with coding overlap
Python vs. Java: The Best Language for 2023

Unsure which programming language to learn? If you plan to start coding in 2023, there is only one choice. But who wins in the Python vs. Java battle?

Python code with hand holding mobile phone
How to Manage Resources in Python With Context Managers

Ensure efficient resource management using context managers in Python.

A jar filled with coins and three stacks of coins with saplings growing out of the top of each.
How to Build an Expense Tracker Using Python

Build this simple app to practice your math programming and learn a little about GUI coding along the way.

Paintbrush, colors, and drawing paper
How to Build a Paint Application Using Python

Coding your own paint app is a classic exercise that will teach you a lot about GUI programming.

game with high score text
How to Use Custom Fonts and Text Effects With Python’s Arcade Library

It might not be the most glamorous aspect of your game, but text can be a powerful element that’s worth refining.

By 
Collage image of Christmas items including snowmen, reindeer, and holly.
How to Make an Image Collage Using Python

Learn all about image handling in Python with this simple but useful tool you can build yourself.

A padlock with a user symbol on it
How to Build a Social Authentication System in Django Using OAuth

Learn how to create a secure login system with social media accounts in Django using OAuth.

Two people sitting facing each other with Python's logo showing on the front computer screen
Working With Generators in Python

Learn how this alternative function type can help you reduce memory footprint.

text in simple game
How to Load Custom Fonts and Text Effects in Pygame

Give your game some personality with text that reflects its design and genre.

By 
beginner-projects-programmers
The 10 Best Beginner Projects for New Programmers

Want to learn programming but don't know where to start? These beginner programming projects and tutorials will start you off.

A laptop with data visualization displayed on it
Getting Started With Streamlit: A Practical Guide

Create interactive web applications for data science and machine learning projects using only Python, all thanks to Streamlit!