Commit c2e10b20 authored by Julian Bauer's avatar Julian Bauer

Fix typos

parent aae956cd
......@@ -1256,7 +1256,7 @@ Using `.send()` will cause the generator to receive a value and iterate to the n
## Comprehensions
Comprehensions are a more succinct form of loop with an accumulator.
Comprehensions are a more succinct form of a loop with an accumulator.
While succinct and powerful, one should use this syntax with moderation,
as complex comprehensions can sacrifice readability in favor of compactness.
......@@ -1318,7 +1318,7 @@ The syntax for each is:
{: .callout}
If you want to read from or write to a file in Python you would typically use the
`open()` function, which returns a handle to the fileyou specified together with one of a few modes.
`open()` function, which returns a handle to the file you specified together with one of a few modes.
If reading text `rt`, if writing text `wt`, if reading binary `rb` and similarly if writing binary `wb`.
You may also add `U` to the mode string (e.g. `mode='rtU') to
activate universal line end mode, which ensures files are read the same
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment