Я не уверен, что вы ищете, но это может помочь.
print ("If 5 rounds have passed, enter any other key")
count = 1
while count <= 5:
nextr = (input("Do you want to continue to the next round?(Yes/No)"))
print ("count = ",count)
if nextr.lower() in ("y", "yes"):
count += 1
Или, может быть, что-то вроде этого:
import time
def round_5():
count = 1
while count <= 5:
print ("Count = ",count)
count += 1
time.sleep(1)
nextr = "y"
print ("If 5 rounds have passed, enter any other key:")
while nextr.lower() in ("yes","y"):
round_5()
nextr = (input("Do you want to continue to the next round?(Yes/No)"))
print ("Thank you, have a nice day")