CBSE Class 12 Computer Science
Question 49 of 136
Data File Handling — Question 14
Back to all questionsfobj.writelines(sequence)
Reason — The syntax for a file object to write sequence data using the writelines() function is fileobject.writelines(sequence). Therefore, fobj.writelines(sequence) is correct.