Adaptive Practice
File Handling in Python
6 questions • Earn up to 54 XP • First attempt — go for 100%!
0
XP
0
Correct
x1
Combo
Question 1 of 6
⏱ 0:30
Easy
Which mode opens a file for reading only?
Easy
What does f.readlines() return?
Easy
Which mode will OVERWRITE existing content?
Medium
What is the advantage of using 'with' statement?
Medium
f.read(5) reads:
Easy
To add data at the end of an existing file, use: