3
What is the output of the following code?
import io
f = io.StringIO('line1\nline2\n')
print(len(f.readlines()))Medium
What is the output of the following code?
import io
f = io.StringIO('line1\nline2\n')
print(len(f.readlines()))Log in to join the discussion.