Why does Learn Python The Hard Way suggest "reading your .py file back"?

I read Learn Python The Hard Way , and I'm really curious what it means by

Read your .py file back

+3
source share
2 answers

Reading something back verbatim is also a great proofreading technique.

Often, when you read something ahead, you will miss the previous words as you will assume what will happen next. Reading something back allows you to more effectively identify spelling errors.

+5
source

Exercise 41 (p. 117) explains this better. This snippet:

cities['_find']=find_city
city_found=cities['_find'](cities,state)

read as follows:

  • stateand cityare ...
  • ...
  • ...
  • _find ...
  • the dict cities...
  • city_found.
+15

Source: https://habr.com/ru/post/1780685/


All Articles