add n_times_string snippet

This commit is contained in:
lazargugleta
2019-09-27 09:07:25 +02:00
parent 6154b16700
commit 2b235f8c1d
4 changed files with 77 additions and 0 deletions

View File

@ -807,6 +807,21 @@
"hash": "c920b58f01c63346e65eab83a60c4635d4c104e41767b9d41ad94029e662b902"
}
},
{
"id": "n_times_string",
"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",
"tags": [
"string",
"beginner"
]
},
"meta": {
"hash": "2d7a8e4505e3ad18e72464fa91c6bfe78592a5873c6202c0758b00f6daf11f8a"
}
},
{
"id": "none",
"type": "snippetListing",

View File

@ -1067,6 +1067,26 @@
"hash": "c920b58f01c63346e65eab83a60c4635d4c104e41767b9d41ad94029e662b902"
}
},
{
"id": "n_times_string",
"title": "n_times_string",
"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",
"codeBlocks": {
"code": "def n_times_string(string,n):\r\n return (string * n)",
"example": "n_times_string('py', 4) #'pypypypy'"
},
"tags": [
"string",
"beginner"
]
},
"meta": {
"hash": "2d7a8e4505e3ad18e72464fa91c6bfe78592a5873c6202c0758b00f6daf11f8a"
}
},
{
"id": "none",
"title": "none",