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
Political Science,
4 months ago
English,
4 months ago
Social Sciences,
9 months ago
Math,
9 months ago
Biology,
1 year ago