@@ -173,7 +173,7 @@ You can pop values from both sides of the deque:
173173 # Output: deque([1, 2, 3])
174174
175175 We can also limit the amount of items a deque can hold. By doing this
176- when we achieve the maximum limit of out deque it will simply pop out
176+ when we achieve the maximum limit of our deque it will simply pop out
177177the items from the opposite end. It is better to explain it using an
178178example so here you go:
179179
@@ -231,15 +231,15 @@ immutable.
231231 print (perry.name)
232232 # Output: 'perry'
233233
234- As you can see that now we can access members of a tuple just by their
234+ You can now see that we can access members of a tuple just by their
235235name using a ``. ``. Let's dissect it a little more. A named tuple has two
236236required arguments. They are the tuple name and the tuple field\_ names.
237237In the above example our tuple name was 'Animal' and the tuple
238238field\_ names were 'name', 'age' and 'cat'. Namedtuple makes your tuples
239239**self-document **. You can easily understand what is going on by having
240240a quick glance at your code. And as you are not bound to use integer
241241indexes to access members of a tuple, it makes it more easy to maintain
242- your code. Moreover, as **`` namedtuple` ` instances do not have
242+ your code. Moreover, as **`namedtuple` instances do not have
243243per-instance dictionaries **, they are lightweight and require no more
244244memory than regular tuples. This makes them faster than dictionaries.
245245However, do remember that as with tuples, **attributes in namedtuples
@@ -287,7 +287,7 @@ Like this:
287287
288288Another useful collection is the enum object. It is available in the ``enum ``
289289module, in Python 3.4 and up (also available as a backport in PyPI named ``enum34 ``.)
290- Enums (`enumerated type <https://en.wikipedia.org/wiki/Enumerated_type> `) are
290+ Enums (`enumerated type <https://en.wikipedia.org/wiki/Enumerated_type >`_ ) are
291291basically a way to organize various things.
292292
293293Let’s consider the Animal namedtuple from the last example. It had a ``type ``
0 commit comments