diff --git a/snippets/n_times_string.md b/snippets/n_times_string.md index 8cc40a50e..7dcf79791 100644 --- a/snippets/n_times_string.md +++ b/snippets/n_times_string.md @@ -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' -``` +``` \ No newline at end of file