We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 816d6b2 commit da7683fCopy full SHA for da7683f
source/c05/p02_printing_to_file.rst
@@ -16,7 +16,7 @@
16
17
.. code-block:: python
18
19
- with open('somefile.txt', 'rt') as f:
+ with open('somefile.txt', 'wt') as f:
20
print('Hello World!', file=f)
21
22
----------
0 commit comments