Python tutorials

Quiz: Python 3.13: Cool New Features for You to Try

Interactive Quiz ⋅ 9 QuestionsBy Geir Arne Hjelle Share In this quiz, you’ll test your understanding of Python 3.13: Cool New Features for You to Try. By working through this quiz, you’ll review the key updates and improvements in this version of Python. 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 100%. Good luck! […]

Read more

Quiz: Syntactic Sugar: Why Python Is Sweet and Pythonic

Interactive Quiz ⋅ 10 QuestionsBy Leodanis Pozo Ramos Share Test your understanding of Python’s most common pieces of syntactic sugar and how they make your code more Pythonic and readable. Take this quiz after reading our Syntactic Sugar: Why Python is Sweet and Pythonic tutorial. The quiz contains 10 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

Python 3.13 Preview: A Modern REPL

One of Python’s strong points is its interactive capabilities. By running python you start the interactive interpreter, or REPL, which allows you to perform quick calculations or explore and experiment with your code. In Python 3.13, the interactive interpreter has been completely redesigned with new modern features. Python’s REPL has remained largely unchanged for decades. Instead, alternative interpreters like IPython, bpython, and ptpython have addressed some of the built-in REPL’s shortcomings, providing more convenient interactive workflows for developers. As you’re […]

Read more

Advanced Python import Techniques

In Python, you use the import keyword to make code in one module available in another. Imports in Python are important for structuring your code effectively. Using imports properly will make you more productive, allowing you to reuse code while keeping your projects maintainable. This video course provides a comprehensive overview of Python’s import statement and how it works. The import system is powerful, and this course will teach you how to harness this power. While you’ll cover many of […]

Read more

Quiz: Using Python’s pip to Manage Your Projects’ Dependencies

Interactive Quiz ⋅ 8 QuestionsBy Philipp Acsany Share In this quiz, you’ll test your understanding of Python’s standard package manager, pip. You’ll revisit the concepts behind pip, important commands, and how to install packages. The quiz contains 8 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%. Good luck! « Browse All Python Quizzes    

Read more

Python 3.13 Preview: Free Threading and a JIT Compiler

Although the final release of Python 3.13 is scheduled for October 2024, you can download and install a preview version today to explore the new features. Notably, the introduction of free threading and a just-in-time (JIT) compiler are among the most exciting enhancements, both designed to give your code a significant performance boost. Check out what’s new in the Python changelog for a complete list of the upcoming features and improvements. This document contains a quick summary of the release […]

Read more

Let’s build and optimize a Rust extension for Python

If your Python code isn’t fast enough, you have many options for compiled languages to write a faster extension. In this article we’ll focus on Rust, which benefits from: Modern tooling, including a package repository called crates.io, and built-in build tool (cargo). Excellent Python integration and tooling. The Rust package (they’re known as “crates”) for Python support is PyO3. For packaging you can use setuptools-rust, for integration with existing setuptools projects, or for standalone extensions you can use Maturin. Memory- […]

Read more

Customizing VS Code Through Color Themes

A well-designed coding environment not only enhances your focus and productivity but also makes coding sessions more enjoyable. In this Code Conversation, your instructor Philipp Acsany will guide you step-by-step through the process of finding, installing, and adjusting color themes in VS Code. You’ll explore the various options available in VS Code and learn how to make fine adjustments to create a setup that suits your personal preferences. In this video course, you’ll: Learn about Themes in VS Code Find […]

Read more

It’s time to stop using Python 3.8

Upgrading to new software versions is work, and work that doesn’t benefit your software’s users. Users care about features and bug fixes, not how up-to-date you are. So it’s perhaps not surprising how many people still use Python 3.8. As of September 2024, about 14% of packages downloaded from PyPI were for Python 3.8. This includes automated downloads as part of CI runs, so it doesn’t mean 3.8 is used in 14% of applications, but that’s still 250 million packages […]

Read more

When should you upgrade to Python 3.13?

Python 3.13 will be out October 1, 2024—but should you switch to it immediately? And if you shouldn’t upgrade just yet, when should you? Immediately after the release, you probably didn’t want to upgrade just yet. But from December 2024 and onwards, upgrading is definitely worth trying, though it may not succeed. To understand why, we need to consider Python packaging, the software development process, and take a look at the history of past releases. The problems with a new […]

Read more
1 4 5 6 7 8 181