Python tutorials

Ways to Start Interacting With Python

There are multiple ways of interacting with Python, and each can be useful for different scenarios. You can quickly explore functionality in Python’s interactive mode using the built-in Read-Eval-Print Loop (REPL), or you can write larger applications to a script file using an editor or Integrated Development Environment (IDE). In this video course, you’ll learn how to: Use Python interactively by typing code directly into the interpreter Execute code contained in a script file from the command line Work within […]

Read more

Learn From 2024’s Most Popular Python Tutorials and Courses

As we welcome 2025, it’s the perfect time to reflect on the exciting advancements the Python community made in 2024. Python 3.13 stood out as a milestone release, introducing ground-breaking experimental features like free threading and a just-in-time (JIT) compiler, both designed to boost performance. The REPL also received an upgrade, with a modern redesign that enhances the coding experience for developers of all levels. These updates, along with other cool new features, have reinforced Python’s reputation as a continually […]

Read more

How to Remove Items From Lists in Python

Removing items from a Python list is a common task that you can accomplish with various techniques. Whether you need to remove an item by its position or value, Python has you covered. In this tutorial, you’ll explore different approaches to removing items from a list, including using .pop(), the del statement, and .remove(). The .remove() method allows you to delete the first occurrence of a specified value, while .pop() can remove an item by its index and return it. […]

Read more

Quiz: How to Remove Items From Lists in Python

Interactive Quiz ⋅ 6 QuestionsBy Leodanis Pozo Ramos Share In this quiz, you’ll test your understanding of How to Remove Items From Lists in Python. By working through this quiz, you’ll revisit the different approaches to removing items from a list in Python, including .pop(), .remove(), the del statement, and more. The quiz contains 6 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total […]

Read more

Get Started With Django User Management

Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Building a Django User Management System Django user management allows you to integrate user authentication and management into your web applications. By using Django, you can leverage the framework’s built-in authentication system to manage user registration, login, and logout. With just a few additional templates, you can enable users to reset and change their […]

Read more

Programming Sockets in Python

Sockets and the socket API are used to send messages across a network. They provide a form of inter-process communication (IPC). The network can be a logical, local network to the computer, or one that’s physically connected to an external network with its own connections to other networks. The obvious example is the Internet, which you connect to via your ISP. In this video course, you’ll create: A simple socket server and client An improved version that handles multiple connections […]

Read more

Dictionaries in Python

Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Using Dictionaries in Python Python dictionaries are a powerful built-in data type that allows you to store key-value pairs for efficient data retrieval and manipulation. Learning about them is essential for developers who want to process data efficiently. In this tutorial, you’ll explore how to create dictionaries using literals and the dict() constructor, as […]

Read more

Object-Oriented Programming (OOP) in Python

Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Intro to Object-Oriented Programming (OOP) in Python Object-oriented programming (OOP) in Python lets you structure your code by grouping related properties and behaviors into individual objects. You create classes as blueprints and instantiate them to form objects. With OOP, you can model real-world entities and their interactions, and create complex systems with reusable components. […]

Read more

Python Set Comprehensions: How and When to Use Them

Python set comprehensions provide a concise way to create and manipulate sets in your code. They generate sets with a clean syntax, making your code more readable and Pythonic. With set comprehensions, you can create, transform, and filter sets, which are great skills to add to your Python programming toolkit. In this tutorial, you’ll learn the syntax and use cases of set comprehensions, ensuring you can decide when and how to use them in your code. Understanding set comprehensions will […]

Read more

Reducing CO₂ emissions with faster software

What can you as a software developer do to fight climate change? My first and primary answer is getting involved with local politics. However, if you write software that operates at sufficient scale, you can also reduce carbon emissions by making your software faster. In this article we’ll cover: Why more computation uses more electricity. Why you probably don’t need to think about this most of the time. Reducing emissions by reducing compute time. Reducing emissions with parallelism (even with […]

Read more
1 2 3 4 5 185