Python tutorials

Quiz: Use TorchAudio to Prepare Audio Data for Deep Learning

Interactive Quiz ⋅ 10 QuestionsBy Bartosz Zaczyński Share In this quiz, you’ll test your understanding of audio fundamentals and how to Use TorchAudio to Prepare Audio Data for Deep Learning. You’ll revisit fundamental terminology and how to: Install and import TorchAudio Load audio waveform datasets Apply signal transforms Work through these questions to check your knowledge about building audio workflows for machine learning in Python. The quiz contains 10 questions and there is no time limit. You’ll get 1 point […]

Read more

Use TorchAudio to Prepare Audio Data for Deep Learning

Ever wondered how machine learning models process audio data? How do you handle different audio lengths, convert sound frequencies into learnable patterns, and make sure your model is robust? This tutorial will show you how to handle audio data using TorchAudio, a PyTorch-based toolkit. You’ll work with real speech data to learn essential techniques like converting waveforms to spectrograms, standardizing audio lengths, and adding controlled noise to build machine and deep learning models. Dive into the tutorial to explore these […]

Read more

Quiz: The Python print() Function

Interactive Quiz ⋅ 12 QuestionsBy Bartosz Zaczyński Share In this quiz, you’ll test your understanding of Your Guide to the Python print() Function. The print() function outputs objects to the console or a specified file-like stream. You’ll practice: Printing multiple values with custom separators Changing the end-of-line character Redirecting output using the file parameter Forcing immediate output with the flush parameter Work through these questions to reinforce your knowledge of print()’s parameters and best practices for clear, formatted I/O. The […]

Read more

Your Guide to the Python print() Function

If you’re like most Python users, then you probably started your Python journey by learning about print(). It helped you write your very own “Hello, World!” one-liner and brought your code to life on the screen. Beyond that, you can use it to format messages and even find some bugs. But if you think that’s all there is to know about Python’s print() function, then you’re missing out on a lot! Keep reading to take full advantage of this seemingly […]

Read more

Starting With DuckDB and Python

The DuckDB database provides a seamless way to handle large datasets in Python with Online Analytical Processing (OLAP) optimization. You can create databases, verify data imports, and perform efficient data queries using both SQL and DuckDB’s Python API. By the end of this video course, you’ll understand that: You can create a DuckDB database by reading data from files like Parquet, CSV, or JSON and saving it to a table. You query a DuckDB database using standard SQL syntax within […]

Read more

Python enumerate(): Simplify Loops That Need Counters

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: Looping With Python enumerate() Python’s enumerate() function helps you with loops that require a counter by adding an index to each item in an iterable. This is particularly useful when you need both the index and value while iterating, such as listing items with their positions. You can also customize the starting index with […]

Read more

Exploring Python’s list Data Type With Examples

The list class is a fundamental built-in data type in Python. It has an impressive and useful set of features, allowing you to efficiently organize and manipulate heterogeneous data. Knowing how to use lists is a must-have skill for you as a Python developer. Lists have many use cases, so you’ll frequently reach for them in real-world coding. By working through this video course, you’ll dive deep into lists and get a solid understanding of their key features. This knowledge […]

Read more

Defining Your Own Python Function

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: Defining and Calling Python Functions A Python function is a named block of code that performs specific tasks and can be reused in other parts of your code. Python has several built-in functions that are always available, and you can also create your own. These are known as user-defined functions. To define a function […]

Read more

Python Continuous Integration and Deployment Using 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

Python Hits the Big Screen and Other Python News for June 2025

A newly announced documentary brings Python’s history and culture to the screen, offering a rare behind-the-scenes look at the people and philosophies that shaped it. Meanwhile, new releases and PEPs continue to drive the evolution in packaging and language design. Conferences also continue to foster inclusion, learning, and connection. With new leadership at the PSF and a slate of impactful updates, the Python community is clearly energized and looking ahead. Let’s dive into the biggest developments shaping Python this month. […]

Read more
1 4 5 6 7 8 198