answer plz | SoloLearn: Learn to code for FREE!

+2

answer plz

How many characters would be in each line printed by this code, if one character is one byte? file = open("filename.txt", "r") for i in range(21): print(file.read(4)) file.close()

4/29/2020 2:59:17 PM

Arpita Chakraborty

12 Answers

New Answer

+5

the answer is 4

+3

Run it and find out.

+1

Wasn't that difficult you could just run it and know the answer

+1

+1

Correct Answer is 4

+1

The answer is 4

0

0

The answer is 4 Although the statement 'print(file.read(4))' is executing 21 iterations, each iteration It will read the same 4 characters.

0

answer is 4

0

-1

Run it to find out (:

-2

I believe 84 character