Update split_lines.md
This commit is contained in:
@ -7,7 +7,7 @@ Splits a multiline string into a list of lines.
|
|||||||
|
|
||||||
Use `s.split()` and `'\n'` to match line breaks and create a list.
|
Use `s.split()` and `'\n'` to match line breaks and create a list.
|
||||||
|
|
||||||
[`str.splitlines`](https://docs.python.org/3/library/stdtypes.html#str.splitlines) provides similar functionality to this snippet.
|
[`str.splitlines()`](https://docs.python.org/3/library/stdtypes.html#str.splitlines) provides similar functionality to this snippet.
|
||||||
|
|
||||||
```py
|
```py
|
||||||
def split_lines(s):
|
def split_lines(s):
|
||||||
|
|||||||
Reference in New Issue
Block a user