Loading…
Open a mock file (StringIO) in write mode and write 'Hello, file!' to it. Then print 'Wrote line: Hello, file!'. Expected output: 'Wrote line: Hello, file!'
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.
Create a free account to save your progress and reveal the worked answer for this free exercise. The complete practice library is available with Practice Pass or Mastery.