Python tutorials

Using the Python subprocess Module

Python’s subprocess module allows you to run shell commands and manage external processes directly from your Python code. By using subprocess, you can execute shell commands like ls or dir, launch applications, and handle both input and output streams. This module provides tools for error handling and process communication, making it a flexible choice for integrating command-line operations into your Python projects. By the end of this video course, you’ll understand that: The Python subprocess module is used to run […]

Read more

Quiz: Web Automation With Python and Selenium

Interactive Quiz ⋅ 21 QuestionsBy Martin Breuss Share In this quiz, you’ll test your understanding of Web Automation With Python and Selenium. By working through this quiz, you’ll revisit concepts like launching browsers, interacting with web elements, handling dynamic content, and implementing the Page Object Model (POM) design pattern. The quiz contains 21 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

Modern Web Automation With Python and Selenium

Selenium is a web automation tool that allows you to use Python to programmatically interact with dynamic, JavaScript-generated web pages. Your Python Selenium code drives a real browser that you can instruct to fill out forms, click buttons, scrape dynamically generated data, or write automated tests for web applications. By implementing the Page Object Model (POM) design pattern, you can create clean and scalable automation scripts that are straightforward to read and maintain. In this tutorial, you’ll learn how to […]

Read more

Quiz: How to Manage Python Projects With pyproject.toml

Interactive Quiz ⋅ 10 QuestionsBy Martin Breuss Share In this quiz, you’ll test your understanding of the pyproject.toml file. This file is a key component for defining a Python project’s build system, including its requirements and build backend. With appropriate tooling, it can also manage dependencies, optional dependencies, command-line scripts, and dynamic metadata for flexible project configuration. The quiz contains 10 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of […]

Read more

Thread Safety in Python: Locks and Other Techniques

Threads share state in your programs, which means race conditions can be created when two or more threads fight to update a value. This course is about the various primitives you can use to ensure atomic access to your program’s shared state. By the end of this video course, you’ll be able to identify safety issues and prevent them by using the synchronization primitives in Python’s threading module to make your code thread-safe. In this video course, you’ll learn: What […]

Read more

Quiz: Managing Python Projects With uv: An All-in-One Solution

Interactive Quiz ⋅ 13 QuestionsBy Martin Breuss Share By working through this quiz, you’ll revisit how Python’s uv integrates multiple functionalities into one tool, offering a comprehensive solution for managing Python projects. You can use it for fast dependency installation, virtual environment management, Python version management, and project initialization, enhancing your productivity and efficiency. The quiz contains 13 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll […]

Read more

Managing Python Projects With uv: An All-in-One Solution

The uv tool is a high-speed package and project manager for Python. It’s written in Rust and designed to streamline your workflow. It offers fast dependency installation and integrates various functionalities into a single tool. With uv, you can install and manage multiple Python versions, create virtual environments, efficiently handle project dependencies, reproduce working environments, and even build and publish a project. These capabilities make uv an all-in-one tool for Python project management. By the end of this tutorial, you’ll […]

Read more

Getting Started With Python IDLE

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: Starting With Python IDLE Python IDLE is the default integrated development environment (IDE) that comes bundled with every Python installation, helping you to start coding right out of the box. In this tutorial, you’ll explore how to interact with Python directly in IDLE, edit and execute Python files, and even customize the environment to […]

Read more

MySQL Databases and Python

MySQL is one of the most popular database management systems (DBMSs) on the market today. It ranked second only to the Oracle DBMS in this year’s DB-Engines Ranking. As most software applications need to interact with data in some form, programming languages like Python provide tools for storing and accessing these data sources. Using the techniques discussed in this video course, you’ll be able to efficiently integrate a MySQL database with a Python application. You’ll develop a small MySQL database […]

Read more

Quiz: Shallow vs Deep Copying of Python Objects

Interactive Quiz ⋅ 12 QuestionsBy Bartosz Zaczyński Share In this quiz, you’ll test your understanding of Shallow vs Deep Copying of Python Objects. By working through this quiz, you’ll revisit the concepts of shallow and deep copying, and how they affect mutable objects in Python. The quiz contains 12 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 maximum score is 100%. […]

Read more
1 2 3 4 5 6 193