Ref #97: Replace built-in shadowed str

This commit is contained in:
Jared
2019-10-06 19:48:51 +00:00
parent e5d48daa30
commit 0f6556478c
11 changed files with 28 additions and 28 deletions

View File

@ -5,11 +5,11 @@ tags: string,beginner
Splits a multiline string into a list of lines.
Use `str.split()` and `'\n'` to match line breaks and create a list.
Use `input_string.split()` and `'\n'` to match line breaks and create a list.
```py
def split_lines(str):
return str.split('\n')
def split_lines(input_string):
return input_string.split('\n')
```
```py