No Image

Python’s tuple Data Type: A Deep Dive With Examples

4 10 月, 2023 Real Python 0

In Python, a tuple is a built-in data type that allows you to create immutable sequences of values. The values or items in a tuple can be of any type. This makes tuples pretty useful in those situations where you need to store heterogeneous data, like that in a database record, for example.

No Image

What’s New in Python 3.12

3 10 月, 2023 Real Python 0

In this video course, you’ll explore the new features that Python 3.12 brings to the table. These include improved f-strings, better error messages, changes to CPython internals, additions to static typing, and more.

No Image

Python 3.12: Cool New Features for You to Try

2 10 月, 2023 Real Python 0

In this tutorial, you’ll learn about the new features in Python 3.12. You’ll explore how the new release extends the better error messages and faster code execution found in the previous version, and you’ll try out the improvements to f-strings and type variable syntax.

No Image

Python 3.12 Preview: Static Typing Improvements

27 9 月, 2023 Real Python 0

In this tutorial, you’ll preview the new static typing features in Python 3.12. You’ll learn about the new syntax for type variables, making generics simpler to define. You’ll also see how @override lets you model inheritance and how you use typed dictionaries to annotate variable keyword arguments.

No Image

Python Basics Exercises: Conditional Logic and Control Flow

26 9 月, 2023 Real Python 0

In this Python Basics Exercises course, you’ll review how to use conditional logic to write programs that perform different actions based on different conditions. Paired with functions and loops, conditional logic allows you to write complex programs that can handle many different situations.

No Image

Python 3.12 Preview: Subinterpreters

25 9 月, 2023 Real Python 0

In this tutorial, you’ll preview one of the upcoming features of Python 3.12 and a proposed change to Python 3.13, addressing how subinterpreters work in the CPython program. The changes are described in PEP 684 and PEP 554.

No Image

How to Catch Multiple Exceptions in Python

20 9 月, 2023 Real Python 0

In this how-to tutorial, you’ll learn different ways of catching multiple Python exceptions. You’ll review the standard way of using a tuple in the except clause, but also expand your knowledge by exploring some other techniques, such as suppressing exceptions and using exception groups.

No Image

Design and Guidance: Object-Oriented Programming in Python

19 9 月, 2023 Real Python 0

In this video course, you’ll learn about the SOLID principles, which are five well-established standards for improving your object-oriented design in Python. By applying these principles, you can create object-oriented code that is more maintainable, extensible, scalable, and testable.