Update parameter name in reverse_string
This commit is contained in:
@ -8,8 +8,8 @@ Returns the reverse of a string.
|
|||||||
Use string slicing to reverse the string.
|
Use string slicing to reverse the string.
|
||||||
|
|
||||||
```py
|
```py
|
||||||
def reverse_string(string):
|
def reverse_string(s):
|
||||||
return string[::-1]
|
return s[::-1]
|
||||||
```
|
```
|
||||||
|
|
||||||
```py
|
```py
|
||||||
|
|||||||
Reference in New Issue
Block a user