We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35855af commit 760114dCopy full SHA for 760114d
1 file changed
python-while-loop/check_file.py
@@ -10,6 +10,6 @@
10
time.sleep(1)
11
12
print(f"{filename} found! Proceeding with processing.")
13
-with open(filename) as file:
+with open(filename, mode="r") as file:
14
print("File contents:")
15
print(file.read())
0 commit comments