LogiQuest
Back to File Handling
19

What is the output of the following code?

import io
f = io.StringIO('hello\nworld\n')
print(f.readline().strip(), f.readline().strip())
Easy

Discussion (0)

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

Log in to join the discussion.