I'm trying to write a function that takes two integers x and y. And it should return a string containing the integer x repeated y times.
My code:
def repeat_int_str(x, y):
int = "x" * y
return int
What the result is supposed to look like:
assert(repeat_int_str(0, 4) == "0000")
assert(repeat_int_str(-5, 3) == "-5-5-5")