print("This program will print the amount of greeting you would like to see.")
print()
play = input("Do you want to continue? (y/n): ")
while play == "y":
name = input("Enter your name: ")
print()
greetings = int(input("How many times would you like to see your custom greeting?: "))
print()
for i in range(greetings):
print("Hello " + name + "." + " It's a pleasure to meet you!")
while play == "n":
continue
So in this line it doesn’t show would you like to see more, instead it shows Enter your name. I'm not sure if I should erase this code or change something
play_2 = input("Would you like to see more? (y/n): ")
while play_2 == "y":
name_2 = input("Enter your name: ")
print()
greetings_2 = int(input("How many times would you like to see your custom
greeting?: "))
print()
for i in range(greetings_2):
print("Hello " + name_2 + "." + "It's a pleasure to meet you!")
while play_2 == "n":
continue
print()
print("Bye. Thanks for using my program!")