Python tutorials

Quiz: Python Logging With the Loguru Library

Interactive Quiz ⋅ 9 QuestionsBy Bartosz Zaczyński Share In this quiz, you’ll test your understanding of How to Use Loguru for Simpler Python Logging. By working through this quiz, you’ll revisit key concepts like installing Loguru, basic logging, formatting, sinks, log rotation, and capturing exception information. The quiz contains 9 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 […]

Read more

How to Use Loguru for Simpler Python Logging

In Python, logging is a vital programming practice that helps you track, understand, and debug your application’s behavior. Loguru is a Python library that provides simpler, more intuitive logging compared to Python’s built-in logging module. Good logging gives you insights into your program’s execution, helps you diagnose issues, and provides valuable information about your application’s health in production. Without proper logging, you risk missing critical errors, spending countless hours debugging blind spots, and potentially undermining your project’s overall stability. After […]

Read more

How to Copy Objects in Python: Shallow vs Deep Copy Explained

When working with Python objects, you’ll often need to make copies rather than modify the originals. In this tutorial, you’ll explore various ways to copy objects in Python, including using the built-in copy module. You’ll also learn the key differences between shallow and deep copies, with practical examples so you can safely duplicate objects in your own code. Explore the nuances of copying objects in Python and learn how to apply these techniques to manage mutable data structures effectively. Getting […]

Read more

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
1 2 3 190