Are new Python devs forgetting the Zen of Python: "There should be one—and preferably only one—obvious way to do it"?

Hello, @bluelobe, and welcome to the Python Software Foundation’s discussion forum!

Please see the following pages, which offer helpful information about this forum:

Note that the first of those two pages contains a section entitled How do I post code snippets, error messages etc?. Within that section is an explanation of how to format Python code by enclosing it between two lines with triple backticks. This could be done with your first posted example of code:

```
L = [1, 2, 3, 4]

for i in L[::-1]:
    print(i, end=' ')
```

Then it would appear as follows, which displays its original indentation and quote characters properly:

L = [1, 2, 3, 4]

for i in L[::-1]:
    print(i, end=' ')

That section also explains other techniques for formatting code for display.

Interestingly, there is more than one obvious way to position hyphens within a sentence :grin::

There should be one-- and preferably only one --obvious way to do it.
1 Like