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:
|