fix minor issues with n_times_string

This commit is contained in:
lazargugleta
2019-09-27 14:05:46 +02:00
parent fb491879f6
commit 0d84ca0c8b

View File

@ -5,8 +5,7 @@ tags: string,beginner
Prints out the same string a defined number of times.
Use this method to print out the same string n number of times.
Repeat the string `n` times, using the `*` operator.
```py
def n_times_string(str,n):
@ -16,4 +15,4 @@ def n_times_string(str,n):
```py
n_times_string('py', 4) #'pypypypy'
```
```