Write a Python program that takes a string and a number as input, and returns the string repeated the given number of times.
String: xyz
Number: 3
def repeatString(string, num):
    return string * num

result = repeatString("xyz", 3)
print(result)