Я написал код и хочу напечатать несколько раз в разных строках, я написал код ниже, мой вопрос о последней строке кода.
import math
# Make an program, ask the user how old he or she is and tell them the year
# they turn 100
name = input("What is your name? ")
age = input("How old are you? ")
random_number = input("Please give a random number between one and ten: ")
age = int(age)
random_number = int(random_number)
year_awnser = 100 - age
year_awnser = int(year_awnser)
print(f"It will take {year_awnser} years until you are 100")
awnser = 2020 + year_awnser
awnser = int(awnser)
print(f"{name} you will be 100 in: {awnser}")
print("\n")
# Print the message above, times given by the random_number.
print(f"{name} you will be 100 in: {awnser}. " * random_number)
Может кто-нибудь помочь мне решить эту проблему вопрос?
Спасибо!