Create a python program to accept two inputs from the user, a number and a string, and print the string the given number of times.
3, Hello
num = int(input("Enter a number: "))
string = input("Enter a string: ")

for i in range(num):
 print(string)