Computer Science, asked by VanilaSky, 10 hours ago

please give appropriate answer​

Attachments:

Answers

Answered by crankybirds30
0

>>>

>>> f = open("poem.txt", "r")

>>>

>>> f.read(3) # read the first 3 characters

'The'

>>>

>>> f.read() # read the remaining characters in the file.

' caged bird sings\nwith a fearful trill\nof things unknown\nbut longed for still\n'

>>>

>>> f.read() # End of the file (EOF) is reached

''

>>>

>>> f.close()

>>>

Similar questions