From 0d84ca0c8b7bbcd867e599da287781f69ec3d171 Mon Sep 17 00:00:00 2001 From: lazargugleta Date: Fri, 27 Sep 2019 14:05:46 +0200 Subject: [PATCH] fix minor issues with n_times_string --- snippets/n_times_string.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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