Write a function named `repeater()` that takes two arguments (a string and a number), and returns a new string where the input string is repeated that many times.

## Example:

should return

Source: codewars | Difficulty: EASY

Starter code: def repeater(string, n):
	

Solutions:
def repeater(string, n):
	return string * n


repeater = str.__mul__


repeater = lambda s, n: s * n


def repeater(string, n):
	counter = 0
	new_string = ''
	while counter < n:
		counter += 1
		new_string = new_string + string
	return new_string


repeater = lambda a, n: a * n


def repeater(string, n):
	s = ''
	for i in range(0, n):
		s = s + string
	return s


def repeater(string, length):
	return string * length


def repeater(s, n):
	return s * n


import operator
repeater = operator.mul


from operator import mul as repeater


def repeater(string, n):
	new = []
	final = ''
	for x in range(n):
		new.append(string)
	return final.join(new)


def repeater(string, n):
	string2 = string
	while len(string2) != len(string) * n:
		string2 += string
	return string2


def repeater(string, n):
	k = 0
	a = ''
	while k < n:
		a += string
		k += 1
	return a


def repeater(string, n):
	output = ''
	i = 0
	while i < n:
		output += string
		i = i + 1
	return output


def repeater(string, n):
	new_string = n * string
	return new_string


def repeater(string, n):
	result = ''
	for x in range(n):
		result += string
	return result


def repeater(string, n):
	newstring = ''
	for i in range(n):
		newstring += string
	return newstring


def repeater(string, n):
	c = string * n
	return c


import unittest

def repeater(string, n):
	return string * n

class TestRepeater(unittest.TestCase):

	def test_repeater(self):
		(string, n) = ('a', 5)
		actual = repeater(string, n)
		self.assertEqual(actual, 'aaaaa')


def repeater(string, n):
	sent = string * n
	return sent


def repeater(string, n):
	ans = ''
	for t in range(n):
		ans += string
	return ans


def repeater(string, n):
	collection = []
	while n > 0:
		collection.append(string)
		n -= 1
	return ''.join(collection)


def repeater(string, n):
	r = ''
	for i in range(n):
		r += string
	return r


def repeater(s, n):
	dp = s
	for i in range(n - 1):
		s += dp
	return s


def repeater(string, n):
	new = str()
	for i in range(1, n + 1):
		new = new + str(string)
	return new


def repeater(string, n):
	return ''.join([string for s in range(n)])


def repeater(string, n):
	a = 0
	b = ''
	while a < n:
		b = b + string
		a += 1
	return b


def repeater(string, n):
	result = ''
	while n != 0:
		result += string
		n -= 1
	return result


def repeater(string, n):
	creed = string * n
	return creed


def repeater(string, n):
	string1 = ''
	for i in range(0, n):
		string1 = string1 + string
	return string1


def repeater(string, n):
	c = ''
	for x in range(n):
		c += string
	return c


def repeater(string, n):
	newstring = ''
	count = n
	while count > 0:
		newstring += string
		count += -1
	return newstring


def repeater(string, n):
	total = ''
	for i in range(n):
		total += string
	return total


def repeater(string, n):
	i = 0
	final_string = ''
	while i < n:
		final_string += string
		i += 1
	return final_string


def repeater(stg, n):
	return stg * n


def repeater(string, n):
	a = ''
	for i in range(n):
		a = a + string
		i += 1
	return a


def repeater(string, n):
	i = ''
	for c in range(0, n):
		i += string
	return i


def repeater(string, n):
	a = ''
	for x in range(n):
		a = a + string
	return a


def repeater(string, n):
	return string * n
string = 'bla'
n = 5
repeater(string, n)


def repeater(string, n):
	repeated_string = ''
	num_count = n
	while num_count > 0:
		repeated_string += string
		num_count -= 1
	return repeated_string


def repeater(string, n):
	yes = ''
	for a in range(n):
		yes += string
	return yes


def repeater(string, n):
	ans = string * n
	return ans


def repeater(string, n):
	string = str(string)
	return string * n


def repeater(string, n):
	copy = ''
	for a in range(n):
		copy += string
	return copy


def repeater(a, b):
	return a * b


def repeater(string, n):
	repeats = string * n
	return repeats


def repeater(string, n):
	a = 0
	stringa = ''
	while a < n:
		stringa += string
		a += 1
	return stringa


def repeater(string, n):
	str = ''
	while n > 0:
		str = str + string
		n = n - 1
	return str


def repeater(string, n):
	return string * n
batman = repeater('na', 16)
print(batman)


def repeater(string, n):
	return string * n
print(repeater('print here\n', 5))
repeat = repeater('lu', 10)
print(repeat)


def repeater(string, n):
	i = 0
	NyttOrd = ''
	while i < n:
		NyttOrd += string
		i += 1
	return NyttOrd


def repeater(string, n):
	return string * n
	return repeater(10)


def repeater(string, n):
	repeated_string = ''
	for repeat in range(n):
		repeated_string += string
	return repeated_string


string = 'Hey!'
n = 3

def repeater(string, n):
	return string * n
print(repeater)


def repeater(string, n):
	line = string * n
	return line


def repeater(string, n):
	return string * n
print(repeater('agi', 5))


def repeater(string, n):
	ans = ''
	for i in range(0, n):
		ans += string
	return ans


def repeater(string, n):
	arr = string
	while n != 1:
		arr = arr + string
		n = n - 1
	return arr


def repeater(string, n):
	repeater = string * n
	string = 'a'
	n = 5
	return repeater


def repeater(string, n):
	strin = string
	for i in range(1, n, 1):
		strin += string
	return strin


def repeater(string, n):
	repeated_string = string * n
	return repeated_string
print(repeater('yes!', 5))


def repeater(string, n):
	answer = ''
	for num in range(0, n):
		answer += string
	return answer


def repeater(string, n):
	str1 = ''
	for i in range(n):
		str1 += string
	return str1
	str1 = ''


def repeater(string, n):
	empty = ''
	for i in range(n):
		empty += string
	return empty


from operator import mul

def repeater(string, n):
	return mul(string, n)


def repeater(string, n):
	result = ''
	for num in range(n):
		result += string
	return result


def repeater(string, n):
	lst = [string] * n
	return ''.join(lst)


def repeater(string, n):
	if n == 1:
		return string
	else:
		return repeater(string, n - 1) + string


def repeater(string, n):
	final = ''
	for _ in range(n):
		final += string
	return final


def repeater(string, n):
	str_list = []
	for x in range(n):
		str_list.append(string)
	return ''.join(str_list)


def repeater(string, n):
	rez = string * n
	return rez


def repeater(string, n):
	strout = [[char for char in string] for x in range(n)]
	fix = [y for x in strout for y in x]
	out = ''.join(map(str, fix))
	return out


def repeater(word, num):
	return word * int(num)
print(repeater('a', 5))


def repeater(string, n):
	return string * n
repeater('Carlos', 5)


def repeater(string, n):
	return string * n
repeater('yo', 3)


def repeater(string, n):
	return string * n
print('R', 5)


def repeater(string, n):
	string_count = string
	output = string_count * n
	return output


def repeater(string, n):
	placeholder = ''
	for i in range(0, n):
		placeholder += string
	return placeholder


def repeater(string, n):
	output = ''
	for x in range(n):
		output = output + string
	return output


repeater = lambda s, n: s + repeater(s, n - 1) if n > 0 else ''


def repeater(string, n):
	fstring = ''
	for i in range(0, n):
		fstring += string
	return fstring


def repeater(string, n):
	z = []
	for x in range(n):
		z.append(string)
	makestr = ''.join(map(str, z))
	return makestr


def repeater(string, n):
	result = ''
	for i in range(0, n):
		result += string
	return result


def repeater(string, n):
	return string * n

def main():
	print(repeater('a', 5))
	print(repeater('Na', 16))
	print(repeater('Wub ', 6))
main()


def repeater(x, n):
	return x * n


def repeater(string, n):
	return string * n
print(repeater('Go Jackie ', 16))


def repeater(string, n):
	times_to_repeat = 0
	repeated_string = ''
	while times_to_repeat < n:
		repeated_string += string
		times_to_repeat += 1
	return repeated_string


def repeater(string, n):
	repeated_string = string * n
	return repeated_string


def repeater(string, n):
	return string * n
repeater('blue', 5)


def repeater(string, n):
	return ''.join(list(string) * n)


def repeater(n, str):
	return str * n