8 lines
194 B
Python
8 lines
194 B
Python
|
def larger_string(str, n):
|
||
|
result = ""
|
||
|
for i in range(n):
|
||
|
result = result + str
|
||
|
return result
|
||
|
|
||
|
print(larger_string('abc', 2))
|
||
|
print(larger_string('.py', 3))
|