PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Blog available for sell
This blog is available for sale. Please 'contact us' if interested.
Advertise with us
Python Multiple Choice Questions
Correct syntax of file.writelines() is?
A. file.writelines(sequence)
B. fileObject.writelines()
C. fileObject.writelines(sequence)
D. none of the mentioned
Show Answer
Next Question
Correct Answer:
C
Explanation: The method writelines() writes a sequence of strings to the file. The sequence can be any iterable object producing strings, typically a list of strings. There is no return value.
© 2024-2025 Python Circle
Contact
Sponsor
Archive
Sitemap