Computer Science, asked by abhishekisbest29, 9 months ago

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 parin9
5

Answer:

sorry not know

Explanation:

be me brainliest

Answered by mindfulmaisel
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