diff --git a/README.md b/README.md index 7e5d8a266..1e318f953 100644 --- a/README.md +++ b/README.md @@ -1796,8 +1796,8 @@ Use this method to print out the same string n number of times. ```py -def n_times_string(string,n): - return (string * n) +def n_times_string(str,n): + return (str * n) ```
diff --git a/snippet_data/snippetList.json b/snippet_data/snippetList.json index 165ba1244..691a7a121 100644 --- a/snippet_data/snippetList.json +++ b/snippet_data/snippetList.json @@ -819,7 +819,7 @@ ] }, "meta": { - "hash": "2d7a8e4505e3ad18e72464fa91c6bfe78592a5873c6202c0758b00f6daf11f8a" + "hash": "b8ba27a04a5c2dcd91f6643eb02b61b9df9a58bedea26ceb2042cb535c0c1eb1" } }, { diff --git a/snippet_data/snippets.json b/snippet_data/snippets.json index 2dc6ab0a2..a4df75ffb 100644 --- a/snippet_data/snippets.json +++ b/snippet_data/snippets.json @@ -1075,7 +1075,7 @@ "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", "codeBlocks": { - "code": "def n_times_string(string,n):\r\n return (string * n)", + "code": "def n_times_string(str,n):\r\n return (str * n)", "example": "n_times_string('py', 4) #'pypypypy'" }, "tags": [ @@ -1084,7 +1084,7 @@ ] }, "meta": { - "hash": "2d7a8e4505e3ad18e72464fa91c6bfe78592a5873c6202c0758b00f6daf11f8a" + "hash": "b8ba27a04a5c2dcd91f6643eb02b61b9df9a58bedea26ceb2042cb535c0c1eb1" } }, { diff --git a/snippets/n_times_string.md b/snippets/n_times_string.md index 8fe23ae80..8cc40a50e 100644 --- a/snippets/n_times_string.md +++ b/snippets/n_times_string.md @@ -9,8 +9,8 @@ Use this method to print out the same string n number of times. ```py -def n_times_string(string,n): - return (string * n) +def n_times_string(str,n): + return (str * n) ``` ```py