Write a Python function that takes a string and an integer as an argument and returns a string containing the string repeated the specified number of times.
"Hello!", 3
def repeat_string(string, num_times):
    return string*num_times

result = repeat_string("Hello!", 3)
print(result)