File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 61
61
62
62
.. note ::
63
63
64
- The majority of code in this book is written as if it where executed in a REPL. If you
64
+ The majority of code in this book is written as if it were executed in a REPL. If you
65
65
are typing it in, ignore the primary and secondary prompts (``>>> `` and ``... ``).
66
66
67
67
The Zen of Python
68
68
===================
69
69
70
- Run the following in an interpreter to get an easter egg that describes some of the ethos behind Python. This is also codified in PEP 20::
70
+ Run the following in an interpreter to get an Easter egg that describes some of the ethos behind Python. This is also codified in PEP 20::
71
71
72
72
>>> import this
73
73
The Zen of Python, by Tim Peters
@@ -1283,7 +1283,7 @@ but Python passes that around for us automatically::
1283
1283
>>> print(bike.gear_inches())
1284
1284
68.0
1285
1285
1286
- We can access both class attributes or instance attributes on the instance::
1286
+ We can access both class attributes and instance attributes on the instance::
1287
1287
1288
1288
>>> bike.num_passengers
1289
1289
1
You can’t perform that action at this time.
0 commit comments