Just a question about the book "Learning Python 5th Edition"

Hello, @Gravity0, and and welcome to Python Software Foundation Discourse!

As you work through the Learning Python book, you may benefit by periodically consulting the document, Porting Python 2 Code to Python 3, when viewing Python 2.7 code.

We hope you enjoy the book and the discussions here. In order to enhance your experience with these discussions, you may be interested in taking a look at the following pages:

If at some time, when asking questions about Python or when offering replies to other users, you post examples of code, please format it correctly, so that important details such as indentation are displayed properly. One way to do this is to place lines of three back ticks before and after the code, as follows:


```
# example code
for i in range(10):
    print("Hello World!")
```

There is also a </> button at the top of the editing window for formatting code, after it has been selected.

EDIT (April 3, 2022):

Also see What’s New in Python, regarding differences between versions of Python.