Python tutorials

Basic Input and Output 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: Reading Input and Writing Output in Python For a program to be useful, it often needs to communicate with the outside world. In Python, the input() function allows you to capture user input from the keyboard, while you can use the print() function to display output to the console. These built-in functions allow for […]

Read more

Continuous Integration and Deployment for Python With GitHub Actions

Creating software is an achievement worth celebrating. But software is never static. Bugs need to be fixed, features need to be added, and security demands regular updates. In today’s landscape, with agile methodologies dominating, robust DevOps systems are crucial for managing an evolving codebase. That’s where GitHub Actions shine, empowering Python developers to automate workflows and ensure their projects adapt seamlessly to change. GitHub Actions for Python empowers developers to automate workflows efficiently. This enables teams to maintain software quality […]

Read more

Managing Dependencies With Python Poetry

When your Python project relies on external packages, you need to make sure you’re using the right version of each package. After an update, a package might not work as it did before. A dependency manager like Python Poetry helps you specify, install, and resolve external packages in your projects. This way, you can be sure that you always work with the correct dependency version on every machine. In this video course, you’ll learn how to: Create a new project […]

Read more

Speed Up Your Python Program With Concurrency

Concurrency refers to the ability of a program to manage multiple tasks at once, improving performance and responsiveness. It encompasses different models like threading, asynchronous tasks, and multiprocessing, each offering unique benefits and trade-offs. In Python, threads and asynchronous tasks facilitate concurrency on a single processor, while multiprocessing allows for true parallelism by utilizing multiple CPU cores. Understanding concurrency is crucial for optimizing programs, especially those that are I/O-bound or CPU-bound. Efficient concurrency management can significantly enhance a program’s performance […]

Read more

Quiz: NumPy Practical Examples: Useful Techniques

Interactive Quiz ⋅ 10 QuestionsBy Ian Eyre Share In this quiz, you’ll test your understanding of the techniques covered in the tutorial NumPy Practical Examples: Useful Techniques. By working through the questions, you’ll review your understanding of NumPy arrays and also expand on what you learned in the tutorial. You’ll need to do some research outside of the tutorial to answer all the questions. Embrace this challenge and let it take you on a learning journey. The quiz contains 10 […]

Read more

Quiz: Interacting With Python

Interactive Quiz ⋅ 8 QuestionsBy Martin Breuss Share In this quiz, you’ll test your understanding of the different ways you can interact with Python. By working through this quiz, you’ll revisit key concepts related to Python interaction in interactive mode using the Read-Eval-Print Loop (REPL), through Python script files, and within Integrated Development Environments (IDEs) and code editors. You’ll also test your knowledge of some other options that may be useful, such as Jupyter Notebooks. The quiz contains 8 questions […]

Read more

Quiz: Expression vs Statement in Python: What’s the Difference?

Interactive Quiz ⋅ 6 QuestionsBy Bartosz Zaczyński Share In this quiz, you’ll test your understanding of Expression vs Statement in Python: What’s the Difference? By working through this quiz, you’ll revisit the key differences between expressions and statements in Python, and how to use them effectively in your code. 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 score. The […]

Read more

Quiz: Python Dictionary Comprehensions: How and When to Use Them

Interactive Quiz ⋅ 7 QuestionsBy Leodanis Pozo Ramos Share In this quiz, you’ll test your understanding of Python Dictionary Comprehensions: How and When to Use Them. Understanding dictionary comprehensions is crucial for you as a Python developer because they provide a Pythonic tool for dictionary manipulation and can be a valuable addition to your programming toolkit. The quiz contains 7 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the […]

Read more

NumPy Practical Examples: Useful Techniques

The NumPy library is a Python library used for scientific computing. It provides you with a multidimensional array object for storing and analyzing data in a wide variety of ways. In this tutorial, you’ll see examples of some features NumPy provides that aren’t always highlighted in other tutorials. You’ll also get the chance to practice your new skills with various exercises. If you’re new to NumPy, it’s a good idea to familiarize yourself with the basics of data science in […]

Read more

Working With TOML and Python

TOML—Tom’s Obvious Minimal Language—is a reasonably new configuration file format that the Python community has embraced over the last couple of years. TOML plays an essential part in the Python ecosystem. Many of your favorite tools rely on TOML for configuration, and you’ll use pyproject.toml when you build and distribute your own packages. In this video course, you’ll learn more about TOML and how you can use it. In particular, you’ll: Learn and understand the syntax of TOML Use tomli […]

Read more
1 2 3 4 182