How can I read an integer (integer) from the user, and read a phrase (phrase) from the user. Then print the phrase (integer) times, each time on a different line?
This is what I have so far:
integer = int(input("Please enter an integer: "))
phrase = str(input("Please enter a phrase: "))
ans = integer * phrase
print(ans)
This only prints the phrase however many times on a single line, how can I separate prints "hellow" in different lines rather instead of "hello,hello,hello"