Common Python Data Structures (Guide)

In this tutorial, you'll learn about Python's data structures. You'll look at several implementations of abstract data types and learn which implementations are best for your specific use cases. | Continue reading


@realpython.com | 3 years ago

Python Mmap: Improved File I/O with Memory Mapping – Real Python

In this tutorial, you'll learn how to use Python's mmap module to improve your code's performance when you're working with files. You'll get a quick overview of the different types of memory before diving into how and why memory mapping with mmap can make your file I/O operations … | Continue reading


@realpython.com | 3 years ago

Python mmap: Improved File I/O With Memory Mapping

In this tutorial, you'll learn how to use Python's mmap module to improve your code's performance when you're working with files. You'll get a quick overview of the different types of memory before diving into how and why memory mapping with mmap can make your file I/O operations … | Continue reading


@realpython.com | 3 years ago

Pass by Reference in Python: Background and Best Practices

In this tutorial, you'll explore the concept of passing by reference and learn how it relates to Python's own system for handling function arguments. You'll look at several use cases for passing by reference and learn some best practices for implementing pass-by-reference constru … | Continue reading


@realpython.com | 3 years ago

Ten Years of Flask: Conversation with Creator Armin Ronacher

This week on the show we have Armin Ronacher to talk about the first 10 years of Flask. Armin talks about the origins of Flask and the components that make up the framework. He talks about what goes into documenting a framework or API. He also talks about the community working on … | Continue reading


@realpython.com | 3 years ago

K-Means Clustering in Python: A Practical Guide

In this step-by-step tutorial, you'll learn how to perform k-means clustering in Python. You'll review evaluation metrics for choosing an appropriate number of clusters and build an end-to-end k-means clustering pipeline in scikit-learn. | Continue reading


@realpython.com | 3 years ago

Pandas Project: Make a Gradebook with Pandas

In this Python pandas project, you'll build a script to calculate grades for a class. The script will quickly and accurately calculate grades from a variety of data sources. You'll see examples of loading, merging, and saving data with pandas, as well as plotting some summary sta … | Continue reading


@realpython.com | 3 years ago

Python Import: Advanced Techniques and Tips

The Python import system is as powerful as it is useful. In this in-depth tutorial, you'll learn how to harness this power to improve the structure and maintainability of your code. | Continue reading


@realpython.com | 3 years ago

Python's Reduce(): From Functional to Pythonic Style

In this step-by-step tutorial, you'll learn how Python's reduce() works and how to use it effectively in your programs. You'll also learn some more modern, efficient, and Pythonic ways to gently replace reduce() in your programs. | Continue reading


@realpython.com | 3 years ago

Python Community Interview with Kattni Rembor

Kattni Rembor is a creative engineer at Adafruit Industries. In this interview, we talk about her work developing CircuitPython and the role mentorship has played in her career to date. She also shares her advice for anyone looking to start their first hardware project using Circ … | Continue reading


@realpython.com | 3 years ago

CPython Internals: Your Guide to the Python 3 Interpreter (Book)

Unlock the inner workings of the Python language, compile the Python interpreter from source code, and participate in the development of CPython. The "CPython Internals" book shows you exactly how. | Continue reading


@realpython.com | 3 years ago

Creating and Modifying PDF Files in Python

In this tutorial, you'll explore the different ways of creating and modifying PDF files in Python. You'll learn how to read and extract text, merge and concatenate files, crop and rotate pages, encrypt and decrypt files, and even create PDFs from scratch. | Continue reading


@realpython.com | 3 years ago

Python vs. JavaScript for Pythonistas

Python and JavaScript are two of the most popular programming languages in the world. In this tutorial, you'll take a deep dive into the JavaScript ecosystem by comparing Python vs JavaScript. You'll learn the jargon, language history, and best practices from a Pythonista's persp … | Continue reading


@realpython.com | 4 years ago

Python Eval(): Evaluate Expressions Dynamically

In this step-by-step tutorial, you'll learn how Python's eval() works and how to use it effectively in your programs. Additionally, you'll learn how to minimize the security risks associated to the use of eval(). | Continue reading


@realpython.com | 4 years ago

Effective Python Testing with Pytest

In this tutorial, you'll learn how to take your testing to the next level with pytest. You'll cover intermediate and advanced pytest features such as fixtures, marks, parameters, and plugins. With pytest, you can make your test suites fast, effective, and less painful to maintain … | Continue reading


@realpython.com | 4 years ago

Sorting Algorithms in Python

In this tutorial, you'll learn all about five different sorting algorithms in Python from both a theoretical and a practical standpoint. You'll also learn several related and important concepts, including Big O notation and recursion. | Continue reading


@realpython.com | 4 years ago

Real Python Podcast – Episode 2: Learn Python Skills While Creating Games

In this episode, Christopher interviews Jon Fincher from the Real Python Team. Jon talks about his recent articles on PyGame and Arcade. They discuss if game programming is a good way to develop your Python programming skills, and if a game would make a good portfolio piece. He c … | Continue reading


@realpython.com | 4 years ago

Real Python is launching a Python podcast

A weekly Python podcast hosted by Christopher Bailey with interviews, coding tips, and conversation with guests from the Python community.The show covers a wide range of topics including Python programming best practices, career tips, and related software development topics.Join … | Continue reading


@realpython.com | 4 years ago

How to Do a Binary Search in Python

Binary search is a classic algorithm in computer science. In this step-by-step tutorial, you'll learn how to implement this algorithm in Python. You'll learn how to leverage existing libraries as well as craft your own binary search Python implementation. | Continue reading


@realpython.com | 4 years ago

Using the Python Defaultdict Type for Handling Missing Keys

In this step-by-step tutorial, you'll learn how the Python defaultdict type works and how to use it for handling missing keys when you're working with dictionaries. You'll also learn how to use a defaultdict to solve problems like grouping or counting the items in a sequence or c … | Continue reading


@realpython.com | 4 years ago

Defining Your Own Python Function

In this tutorial, you'll learn how to define and call your own Python function. You'll also learn about passing data to your function, and returning data from your function back to its calling environment. | Continue reading


@realpython.com | 4 years ago

Introduction to Python SQL Libraries

In this step-by-step tutorial, you'll learn how to connect to different database management systems by using various Python SQL libraries. You'll interact with SQLite, MySQL, and PostgreSQL databases and perform common database queries using a Python application. | Continue reading


@realpython.com | 4 years ago

Null in Python: Understanding Python's NoneType Object

In this tutorial, you'll learn about the NoneType object None, which acts as the null in Python. This object represents emptiness, and you can use it to mark default parameters and even show when you have no result. None is a tool for doing everything with nothing! | Continue reading


@realpython.com | 4 years ago

A Guide to the Newer Python String Format Techniques

In the last tutorial in this series, you learned how to format string data using the string modulo operator. In this tutorial, you'll see two more items to add to your Python string formatting toolkit. You'll learn about Python's string format method and the formatted string lit … | Continue reading


@realpython.com | 4 years ago

Python Command Line Arguments

Python command line arguments are the key to converting your programs into useful and enticing tools that are ready to be used in the terminal of your operating system. In this step-by-step tutorial, you'll learn their origins, standards, and basics, and how to implement them in … | Continue reading


@realpython.com | 4 years ago

Use a Flask Blueprint to Architect Your Applications

In this tutorial, you'll learn how to use a Flask Blueprint to help you structure your application by grouping its functionality into reusable components. You'll learn what Blueprints are, how they work, and how you can use them to organize your code. | Continue reading


@realpython.com | 4 years ago

Arcade: A Primer on the Python Game Framework

In this step-by-step tutorial, you'll learn how to use arcade, a modern Python framework for crafting games with compelling graphics and sound. Object-oriented and built for Python 3.6 and up, arcade provides you a modern set of tools for crafting great Python game experiences. | Continue reading


@realpython.com | 4 years ago

Logistic Regression in Python

In this step-by-step tutorial, you'll get started with logistic regression in Python. Classification is one of the most important areas of machine learning, and logistic regression is one of its basic methods. You'll learn how to create, evaluate, and apply a model to make predic … | Continue reading


@realpython.com | 4 years ago

Exploring HTTPS with Python

In this tutorial, you'll gain a working knowledge of the various factors that combine to keep communications over the Internet safe. You'll see concrete examples of how to keep information secure and use cryptography to build your own Python HTTPS application. | Continue reading


@realpython.com | 4 years ago

NumPy, SciPy, and Pandas: Correlation with Python

In this tutorial, you'll learn what correlation is and how you can calculate it with Python. You'll use SciPy, NumPy, and Pandas correlation methods to calculate three different correlation coefficients. You'll also see how to visualize data, regression lines, and correlation mat … | Continue reading


@realpython.com | 4 years ago

Run Python Versions in Docker: How to Try the Latest Python Release

In this tutorial, you'll learn how to run different Python versions in Docker. By following the examples, you'll see how you can play with the latest development version of Python, and how to use Dockerfiles to set up Python environments and package your own scripts. | Continue reading


@realpython.com | 4 years ago

Python Statistics Fundamentals: How to Describe Your Data

In this step-by-step tutorial, you'll learn the fundamentals of descriptive statistics and how to calculate them in Python. You'll find out how to describe, summarize, and represent your data visually using NumPy, SciPy, Pandas, Matplotlib, and the built-in Python statistics libr … | Continue reading


@realpython.com | 4 years ago

MicroPython: An Intro to Programming Hardware in Python

Are you interested in the Internet of Things, home automation, and connected devices? If so, then you're in luck! In this tutorial, you'll learn about MicroPython and the world of electronics hardware. You'll set up your board, write your code, and deploy a MicroPython project to … | Continue reading


@realpython.com | 4 years ago

Pandas: How to Read and Write Files

In this tutorial, you'll learn about the Pandas IO tools API and how you can use it to read and write files. You'll use the Pandas read_csv() function to work with CSV files. You'll also cover similar methods for efficiently working with Excel, CSV, JSON, HTML, SQL, pickle, and b … | Continue reading


@realpython.com | 4 years ago

Python Descriptors

In this step-by-step tutorial, you'll learn what Python descriptors are and how they're used in Python's internals. You'll learn about the descriptor protocol and how the lookup chain works when you access an attribute. You'll also see a few practical examples where Python descri … | Continue reading


@realpython.com | 4 years ago

Invalid Syntax in Python: Common Reasons for SyntaxError

In this step-by-step tutorial, you'll see common examples of invalid syntax in Python and learn how to resolve the issue. If you've ever received a SyntaxError when trying to run your Python code, then this is the guide for you! | Continue reading


@realpython.com | 4 years ago

Getting Started with Python Idle

In this tutorial, you'll learn how to use the development environment included with your Python installation. Python IDLE is a small program that packs a big punch! You'll learn how to use Python IDLE to interact with Python directly, work with Python files, and improve your dev … | Continue reading


@realpython.com | 4 years ago

PyCon Africa 2019 (Recap)

The first-ever PyCon in Africa took place in Accra, Ghana in August 2019 and brought together Pythonistas from 26 different countries. The conference had 33 talks and 8 workshops covering topics such as machine learning, web development, robotics, and community building. | Continue reading


@realpython.com | 4 years ago

Cool New Features in Python 3.8

What does Python 3.8 bring to the table? Learn about some of the biggest changes and see you how you can best make use of them. | Continue reading


@realpython.com | 4 years ago

Build a Mobile Application with the Kivy Python Framework

In this step-by-step tutorial, you'll learn how to build a mobile application with Python and the Kivy GUI framework. You'll discover how to develop an application that can run on your desktop as well as your phone. Then, you'll package your app for iOS, Android, Windows, and OS … | Continue reading


@realpython.com | 4 years ago

Python REST APIs with Flask, Connexion, and SQLAlchemy – Part 4

In Part 4 of this series, you'll learn how to create a Single-Page Application (SPA) to interface with the REST API backend that you built in Part 3. Your SPA will use HTML, CSS, and JavaScript to present this REST API to a user as a browser-based web application. | Continue reading


@realpython.com | 4 years ago

Python Community Interview with Al Sweigart

Al Sweigart is an accomplished developer, conference speaker, teacher, and origamist. But some may know him best for his numerous Python programming books, such as Automate the Boring Stuff with Python. | Continue reading


@realpython.com | 4 years ago

Python and PyQt: Building a GUI Desktop Calculator

In this step-by-step tutorial, you'll learn how to create Graphical User Interface (GUI) applications with Python and PyQt. Once you've covered the basics, you'll build a fully-functional desktop calculator that can respond to user events with concrete actions. | Continue reading


@realpython.com | 4 years ago

Arduino with Python: How to Get Started

In this step-by-step tutorial, you'll discover how to use Arduino with Python to develop your own electronic projects. You'll learn how to set up circuits and write applications with the Firmata protocol. You'll control Arduino inputs and outputs and integrate the board with high … | Continue reading


@realpython.com | 4 years ago

Python Sleep(): How to Add Time Delays to Your Code

In this tutorial, you'll learn how to add time delays to your Python programs. You'll use decorators and the built-in time module to add Python sleep() calls to your code. Then, you'll discover how time delays work with threads, asynchronous functions, and graphical user interfac … | Continue reading


@realpython.com | 4 years ago

Cool New Features in Python 3.8

What does Python 3.8 bring to the table? Learn about some of the biggest changes and see you how you can best make use of them. | Continue reading


@realpython.com | 4 years ago

Emacs: Python Editor?

In this step-by-step tutorial, you'll learn about using Emacs for Python development. You'll install and configure Emacs on your selected platform, then write Python code to explore its capabilities. Finally, you'll run, test, and debug Python code in the Emacs environment. | Continue reading


@realpython.com | 4 years ago

Building a Python C Extension Module

In this tutorial, you'll learn how to write Python interfaces in C. Find out how to invoke C functions from within Python and build Python C extension modules. You'll learn how to parse arguments, return values, and raise custom exceptions using the Python API. | Continue reading


@realpython.com | 4 years ago