Suppose a file named test.txt has content 1 2 3 4 5 6 7 in it.Now what will be the output of the following code :-
file = open("test.txt",'r')
file.read(5)
5
4 5 6 7
1 2 3
None of the above
Answers
Answered by
0
Answer:
Explanation: Execute help(open) to get more details.
Answered by
0
Answer:
1 2 3
Explanation:
file.read(5) will return first 5 characters of the file. So 1 2 3 (2 spaces including)
Similar questions