303 B
303 B
title, tags
| title | tags |
|---|---|
| n_times_string | 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.
def n_times_string(string,n):
return (string * n)
n_times_string('py', 4) #'pypypypy'