LogiQuest
Back to File Handling
18

What is the output of the following code?

import io
f = io.StringIO('a\nb\nc\n')
print(len(f.readlines()))
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.