Quiz on Python String splitlines() Method



1. What does the splitlines() method do in Python?
2. Which parameter can be used with the splitlines() method?
3. What is the default value of the keepends parameter in splitlines()?
4. How does splitlines() handle different types of line endings?
5. Can splitlines() be used on an empty string?

Advertisements