Which method splits a string into lines in Python?
Correct answer
C. splitlines()
C. splitlines()
splitlines() splits at line boundaries and returns a list of lines.
Asked in: Python Interview Strings
https://docs.python.org/3/library/stdtypes.html#string-methodsNot sure why the answer is C? Ask here and get an explanation.