Update input_string to s for string examples

This commit is contained in:
Jared
2019-10-08 02:43:58 +00:00
parent 0f6556478c
commit e1c05cd1c1
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 `input_string.split()` and `'\n'` to match line breaks and create a list.
Use `s.split()` and `'\n'` to match line breaks and create a list.
```py
def split_lines(input_string):
return input_string.split('\n')
def split_lines(s):
return s.split('\n')
```
```py