```if-not:racket
Write a function called `repeat_str` which repeats the given string `src` exactly `count` times.
```
```if:racket
Write a function called `repeat-string` which repeats the given string `str` exactly `count` times.
```

Difficulty: EASY
Tags: String algorithms

Fundamentals

Starter code:
def repeat_str(repeat, string):
	

Solutions:
def repeat_str(repeat, string):
	return repeat * string


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


def repeat_str(repeat, string):
	solution = ''
	for i in range(repeat):
		solution += string
	return solution


def repeat_str(r, s):
	return s * r


repeat_str = lambda r, s: s * r


repeat_str = lambda n, str: str * n


def repeat_str(repeat, string):
	return ''.join([string] * repeat)


repeat_str = lambda _, __: __ * _


from operator import mul as repeat_str


def repeat_str(repeat, text):
	rep = text * repeat
	return rep
print(repeat_str(5, 'Easy'))


repeat_str = __import__('operator').mul


repeat_str = lambda n, s: s * n


def repeat_str(repeat, string):
	return string + repeat_str(repeat - 1, string) if repeat else ''


def repeat_str(repeat, string):
	return '{}'.format(string) * int(repeat)


def repeat_str(repeat, string):
	result = ''
	for i in range(0, repeat):
		result = f'{result}{string}'
	return result


def repeat_str(repeat, string):
	repeatString = ''
	for i in range(0, repeat):
		repeatString += string
	return repeatString


def repeat_str(repeat, string):
	counter = 0
	out = ''
	while counter < repeat:
		out += string
		counter += 1
	return out


def repeat_str(repeat, string):
	result = ''
	i = 0
	while i != repeat:
		result += string
		i += 1
	print(result)
	return result


repeat_str = lambda x, y: x * y


def repeat_str(repeat, string):
	stri = ''
	for i in range(repeat):
		stri = stri + string
	return stri


def repeat_str(repeat, string):
	res = string * repeat
	return f'{res}'


def repeat_str(repeat, string):
	var = string
	return var * repeat


def repeat_str(repeat, string):
	result = string * repeat
	length = len(result)
	return result


def repeat_str(r, string):
	output = ''
	for x in range(0, r):
		output += string
	return output


def repeat_str(repeat, string):
	repeated_words = ''
	for i in range(repeat):
		repeated_words += string
	return repeated_words
repeat_str(5, 'a')


def repeat_str(repeat, string):
	ans = string
	for x in range(repeat - 1):
		ans += string
	return ans


def repeat_str(repeat, string):
	x = int(repeat) * string
	return x


def repeat_str(repeat, string):
	txt = ''
	number = 0
	while number < repeat:
		txt += string
		number += 1
	return txt


def repeat_str(repeat, string):
	repeated_str = int(repeat) * string
	return repeated_str


def repeat_str(repeat, string):
	sr = repeat * string
	return sr


def repeat_str(repeat, string):
	s = []
	for i in range(repeat):
		s.append(string)
	return ''.join(s)


def repeat_str(repeat, string):
	if string * repeat:
		return string * repeat
	return


def repeat_str(repeat, string):
	total = ''
	for i in range(repeat + 1):
		total = string * i
	return total


def repeat_str(repeat, string):
	word = ''
	iterator = 0
	while iterator < repeat:
		word = word + string
		iterator = iterator + 1
	return word


def repeat_str(repeat, string):
	new_str = ''
	while repeat > 0:
		new_str += string
		repeat -= 1
	return new_str


def repeat_str(repeat, string):
	return_str = string * repeat
	return return_str


def repeat_str(repeat, string):
	reply = ''
	for a in range(repeat):
		reply += string
	return reply


def repeat_str(count, src):
	return count * src


def repeat_str(repeat, string):
	other = string
	for i in range(repeat - 1):
		string += other
	return string


def repeat_str(repeat, string):
	new_string = ''
	for i in range(0, repeat, 1):
		new_string += string
	return new_string


def repeat_str(repeat, string):
	(i, ans) = (0, '')
	while i < repeat:
		ans += string
		i = i + 1
	return ans


def repeat_str(repeat, string):
	rta = ''
	for i in range(repeat):
		rta += string
	return rta


def repeat_str(repeat, string):
	loopStr = ''
	for i in range(repeat):
		loopStr += string
	return loopStr


def repeat_str(repeat, string):
	while repeat > 0:
		return string * repeat
	else:
		pass


def repeat_str(repeat, string):
	outString = ''
	for i in range(repeat):
		outString = outString + string
	return outString


def repeat_str(repeat, string):
	z = ''
	for k in range(0, repeat):
		z += string
	return z


def repeat_str(noOfTimes, str):
	return str * noOfTimes


def repeat_str(repeat, string):
	string = string * repeat
	return string
repeat_str(4, 'a')


def repeat_str(repeat, string):
	return string * repeat
print(repeat_str(4, 'sa'))


def repeat_str(repeat, string):
	src = ''
	for i in range(0, repeat):
		src += string
	return src


def repeat_str(x, z):
	return x * z


def repeat_str(repeat, string):
	out = ''
	i = 0
	while i < repeat:
		out = out + string
		i += 1
	return out


def repeat_str(repeat, string):
	x = ''
	for _ in range(repeat):
		x += string
	return x


def repeat_str(repeat, string):
	finalstring = ''
	for i in range(repeat):
		finalstring += string
	return finalstring


def repeat_str(repeat, string):
	return str(''.join((string for i in range(0, repeat))))


def repeat_str(repeatCT, sourceString):
	repeatString = repeatCT * sourceString
	return repeatString


def repeat_str(repeat, string):
	anwser = ''
	for a in range(repeat):
		anwser += string
	print(anwser)
	return anwser


def repeat_str(repeat, string):
	final_string = ''
	for i in range(repeat):
		final_string = final_string + string
	return final_string


repeat_str = lambda repeat, string: ''.join([string] * repeat)


def repeat_str(repeat, string):
	new_str = ''
	for s in range(repeat):
		new_str = string + new_str
	return new_str


def repeat_str(repeat, string):
	x = string
	for i in range(repeat - 1):
		string = string + x
	return string


def repeat_str(repeat, string):
	x = ''
	while repeat > 0:
		repeat -= 1
		x += string
	return x


def repeat_str(repeat, string):
	output = str(string)
	for x in range(repeat - 1):
		output += string
	return output


def repeat_str(count, src):
	return count * src
repeat_str(3, 'hello')


def repeat_str(repeat, string):
	if len(string) >= 1:
		pass
	return repeat * string


def repeat_str(repeat, string):
	count = ''
	for i in range(repeat):
		count += string
	return count


def repeat_str(repeat=0, string=''):
	return string * repeat


def repeat_str(repeat, string):
	ans = ''
	for x in range(0, repeat):
		ans = ans + string
	return ans


def repeat_str(repeat, string):
	s = string
	for i in range(1, repeat):
		s = s + string
	return s


def repeat_str(repeat, string):
	new_string = ''
	for i in range(repeat):
		new_string = f'{new_string}{string}'
	return new_string


def repeat_str(wanted, s):
	return s * wanted


def repeat_str(count, string):
	str = string
	for count in range(0, count - 1):
		string = string.__add__(str)
	return string
print(repeat_str(4, 'a'))


def repeat_str(count, src):
	output = count * src
	return output


def repeat_str(repeat, string):
	while string != '':
		print(string * repeat)
		break
	return string * repeat


def repeat_str(repeat, string):
	hold = ''
	for i in range(repeat):
		hold += string
	return hold


def repeat_str(repeat, string):
	Answer = string * repeat
	return Answer


def repeat_str(c, s):
	return c * s


def repeat_str(repeat, string):
	substring = ''
	for i in range(repeat):
		substring = string + substring
	return substring


def repeat_str(repeat, string):
	result = string
	count = 1
	while count < repeat:
		result += string
		count += 1
	return result


def repeat_str(repeat, string):
	retStr = ''
	for x in range(0, repeat):
		retStr += string
	return retStr


def repeat_str(repeat, string):
	a = ''
	while repeat != 0:
		a += string
		repeat = repeat - 1
	return a


def repeat_str(repeat, string):
	output = ''
	for x in range(0, repeat):
		output = output + string
		x += 1
	return output


def repeat_str(repeat, string):
	score = repeat * string
	return score


def repeat_str(r, s):
	repeat = ''
	for i in range(r):
		repeat += s
	return repeat


def repeat_str(src, count):
	try:
		if src == int(src):
			return src * count
	except ValueError:
		return 'Error'


def repeat_str(repeat, string):
	output = ''
	count = repeat
	while count > 0:
		output += string
		count -= 1
	return output


def repeat_str(repeat, string):
	inf = repeat * string
	return repeat * string


def repeat_str(repeat, string):
	string_m = ''
	for x in range(repeat):
		string_m += string
	return string_m


def repeat_str(repeat, string):
	repeat_final = string * repeat
	return repeat_final