Function Details: splitlines

Description


Returns a list of the lines in the string, breaking at line boundaries.


Extended Description


The splitlines() method splits a string into a list of lines. It breaks the string at line boundaries (\n, \r\n, \r). If keepends is False (default), the line breaks are not included in the resulting list items.


Read More about splitlines from Python Documentation

Function Signature



Module: builtins

Class: str

Parameters



Parameter List


  • keepends: bool

Return



Return Type


List[str]

Output

Explanation