play_game = True
runnig = True
game = ""
play = ""
while runnig:#Пока условие истинно
play = input("Play?: ")
if play == "n": #если play = "n"
runnig = False
while play_game:
game = input("Yes or no? ")
if game == "n":
play_game = False
if play == "n": #если play = "n"
runnig = False
while play_game:
game = input("Yes or no? ")
if game == "n":
play_game = False