Skip to content

Commit a898713

Browse files
authored
Update python.md
1 parent ca64800 commit a898713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ file.close()
285285
# Alternative
286286
with open("file.txt", "w") as f:
287287
f.write("Hello, world!") # Overwrite file
288-
f.writelines(["Line1\n", "Line2\n"]) # Write multiple lines
288+
f.writelines(["Line1\n", "Line2\n"]) # Write multiple lines
289289
```
290290

291291
### Writing (append)

0 commit comments

Comments
 (0)