There is a stream named s open for writing.

There is a stream named s open for writing.

What option will vou select to write a line to the stream”
A . s.write("Hello
")

B . write(s, "Hello")
C . s.writeln("Hello")
D . s.writeline("Hello")

Answer: A

Explanation:

Reference: https://en.wikibooks.org/wiki/Python_Programming/Input_and_Output

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments