Fill in the blank in the given code:
>>> fo = open("myfile.txt",'w')
>>> lines = ["Hello
", "Writing strings
", "third line"]
>>> fo._____________(lines)
>>>myobject.close() 1.write( )
2. writelines( )
3.. writeline( )
4.None of the above
Answer:2
Posted Date:-2021-12-12 00:22:45