From 2279b56a8e3f5b50895fd478c16cc31a25d5348d Mon Sep 17 00:00:00 2001 From: Jusimar Alves da Silva <68277826+jusimargv@users.noreply.github.com> Date: Sun, 12 May 2024 16:30:00 -0300 Subject: [PATCH] Update how-to-open-a-file-object.md --- .../basic-file-manipulation/how-to-open-a-file-object.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/python-core/basic-file-manipulation/how-to-open-a-file-object.md b/python/python-core/basic-file-manipulation/how-to-open-a-file-object.md index 1ca6a14f00..89f3514310 100644 --- a/python/python-core/basic-file-manipulation/how-to-open-a-file-object.md +++ b/python/python-core/basic-file-manipulation/how-to-open-a-file-object.md @@ -80,9 +80,9 @@ print("The file mode is: ", obj.mode) Suppose we want to open a file for both `reading` and `appending`. Fill the gaps accordingly: ```python -file = ???('practice.py', '???') +file = open('practice.py', 'a') file.write('Append this') -file.???(0) +file.seek(0) ``` - `open`