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`