Skip to content

corrected typos #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions python.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ REPL

.. note::

The majority of code in this book is written as if it where executed in a REPL. If you
The majority of code in this book is written as if it were executed in a REPL. If you
are typing it in, ignore the primary and secondary prompts (``>>>`` and ``...``).

The Zen of Python
===================

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::
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::

>>> import this
The Zen of Python, by Tim Peters
Expand Down Expand Up @@ -1282,7 +1282,7 @@ but Python passes that around for us automatically::
>>> print(bike.gear_inches())
68.0

We can access both class attributes or instance attributes on the instance::
We can access both class attributes and instance attributes on the instance::

>>> bike.num_passengers
1
Expand Down