diff --git a/README.md b/README.md index 1e318f953..55b9e6340 100644 --- a/README.md +++ b/README.md @@ -1792,8 +1792,7 @@ kebab('AllThe-small Things'); # "all-the-small-things" 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): diff --git a/snippet_data/snippetList.json b/snippet_data/snippetList.json index 691a7a121..e4bbd72c9 100644 --- a/snippet_data/snippetList.json +++ b/snippet_data/snippetList.json @@ -812,14 +812,14 @@ "type": "snippetListing", "title": "n_times_string", "attributes": { - "text": "Prints out the same string a defined number of times.\n\nUse this method to print out the same string n number of times.\n\n\n", + "text": "Prints out the same string a defined number of times.\n\nRepeat the string `n` times, using the `*` operator.\n\n", "tags": [ "string", "beginner" ] }, "meta": { - "hash": "b8ba27a04a5c2dcd91f6643eb02b61b9df9a58bedea26ceb2042cb535c0c1eb1" + "hash": "5f815cfc58d3339f19b865433b2965a08e64f336e1747009e915883096deb26b" } }, { diff --git a/snippet_data/snippets.json b/snippet_data/snippets.json index a4df75ffb..38b3a8874 100644 --- a/snippet_data/snippets.json +++ b/snippet_data/snippets.json @@ -1073,7 +1073,7 @@ "type": "snippet", "attributes": { "fileName": "n_times_string.md", - "text": "Prints out the same string a defined number of times.\n\nUse this method to print out the same string n number of times.\n\n\n", + "text": "Prints out the same string a defined number of times.\n\nRepeat the string `n` times, using the `*` operator.\n\n", "codeBlocks": { "code": "def n_times_string(str,n):\r\n return (str * n)", "example": "n_times_string('py', 4) #'pypypypy'" @@ -1084,7 +1084,7 @@ ] }, "meta": { - "hash": "b8ba27a04a5c2dcd91f6643eb02b61b9df9a58bedea26ceb2042cb535c0c1eb1" + "hash": "5f815cfc58d3339f19b865433b2965a08e64f336e1747009e915883096deb26b" } }, {