Language: Python
try:
file = open(filepath)
data = file.read()
finally:
file.close
Select the correct answer:
I an erroris raised, the ble will remain open
The file may be closed before all data is read
If opening the le fails, a different error is falsed
Not all bytes from the file arejead.
Answers
Answered by
5
Answer:
sorry not know
Explanation:
be me brainliest
Answered by
1
option (c) is the correct answer
Explanation:
file = open(filepath)
data = file.read()
finally:
file.close
- on trying the above python program, option (c) is the correct answer
- by running the program, when we open the file, it failed and a different error is falsed
- If opening the file fails, a different error is false
- thus, option (c)-If opening the le fails, a different error is falsed is the correct option
Similar questions
Physics,
4 months ago
Social Sciences,
4 months ago
Hindi,
4 months ago
Social Sciences,
8 months ago
Math,
8 months ago
Biology,
11 months ago
History,
11 months ago