How is method write() different from writelines() in python?
Answer:
write( ) |
writelines( ) |
This method writes a string into a file. |
This method writes a sequence of strings to the file. |
Syntax:
|
Syntax:
|
Get live Maths 1-on-1 Classs - Class 6 to 12