You don't need multiple while loops but a simple if-elif inside the loop:
n = input("You are in the Lost Forest\n****************\n****************\n :)\n****************\n****************\nGo left or right? ")
i = 1
while (n.lower() == "right" or n == "Right"):
if i < 3:
n = input("You are in the Lost Forest\n****************\n****************\n :(\n****************\n****************\nGo left or right? ")
elif i >= 3:
n = input("You are in the Lost Forest\n****************\n****** ***\n (╯°□しろいしかく°)╯( ┻━┻\n****************\n****************\nGo left or right? ")
i = i + 1
You don't need multiple while loops but a simple if-elif inside the loop:
n = input("You are in the Lost Forest\n****************\n****************\n :)\n****************\n****************\nGo left or right? ")
i = 1
while (n == "right" or n == "Right"):
if i < 3:
n = input("You are in the Lost Forest\n****************\n****************\n :(\n****************\n****************\nGo left or right? ")
elif i >= 3:
n = input("You are in the Lost Forest\n****************\n****** ***\n (╯°□しろいしかく°)╯( ┻━┻\n****************\n****************\nGo left or right? ")
i = i + 1
You don't need multiple while loops but a simple if-elif inside the loop:
n = input("You are in the Lost Forest\n****************\n****************\n :)\n****************\n****************\nGo left or right? ")
i = 1
while (n.lower() == "right"):
if i < 3:
n = input("You are in the Lost Forest\n****************\n****************\n :(\n****************\n****************\nGo left or right? ")
elif i >= 3:
n = input("You are in the Lost Forest\n****************\n****** ***\n (╯°□しろいしかく°)╯( ┻━┻\n****************\n****************\nGo left or right? ")
i = i + 1
You don't need multiple while loops but a simple if-elif inside the loop:
n = input("You are in the Lost Forest\n****************\n****************\n :)\n****************\n****************\nGo left or right? ")
i = 1
while (n == "right" or n == "Right"):
if i < 3:
n = input("You are in the Lost Forest\n****************\n****************\n :(\n****************\n****************\nGo left or right? ")
elif i >= 3:
n = input("You are in the Lost Forest\n****************\n****** ***\n (╯°□しろいしかく°)╯( ┻━┻\n****************\n****************\nGo left or right? ")
i = i + 1
lang-py