Skip to content
Open
Show file tree
Hide file tree
Changes from 15 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Types of change:
### Changed
- [Html - Link Relative Paths - Change part of PQ as it wasn't worder properly](https://github.com/enkidevs/curriculum/pull/2985)
- [Python - Format Text Paragraphs With Textwrap - Make the fill method more clear](https://github.com/enkidevs/curriculum/pull/2981)
- [Python - Basic File Manipulation - Move single-line commands to a single line, update indentation in codeblocks from 4 to 2 spaces](https://github.com/enkidevs/curriculum/pull/2990)

## January 4th 2022

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ revisionQuestion:
Consider the following syntax:

```python
obj = open(f_name, [access_mode],
[buffering])
obj = open(f_name, [access_mode], [buffering])
```

Here's the disambiguation of its arguments:
Expand Down
3 changes: 1 addition & 2 deletions python/python-core/basic-file-manipulation/writing-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ text = open(path, 'w+')
Writing to the **file** can be done via the `write()` function. A single **string** may be passed as as **argument**, which will be written to the **file**. You can **split** the **string** into multiple lines by adding `\n` character where necessary.

```python
in = 'This is one line\n
This is the second one.'
in = 'This is one line\n This is the second one.'
text.write(in)
text.seek(0)
print(text.read())
Expand Down