Hi, I am new to python and need some help with a simple loop. I want the code to loop this section input("You are in the Lost Forest\n****************\n****** \n (╯°□°)╯︵ ┻━┻\n*************\n****************\nGo left or right? ") until the user inputs left(or something other than right). I can do that on it’s own but somehow it’s interactions with my counter is not continuing to loop after the counter ends. I’ve tried varying combinations of nested loops and can’t seem to get it quite right. Any help would be greatly appreciated!
n = input("You are in the Lost Forest\n****************\n****************\n :)\n****************\n****************\nGo left or right? “)
while n == “right” or n == “Right”:#makesureyoudupe n==”"bothsidesofor
for n in range(4):
input("You are in the Lost Forest\n****************\n****************\n :(\n****************\n****************\nGo left or right? ")
input("You are in the Lost Forest\n****************\n****** \n (╯°□°)╯︵ ┻━┻\n*************\n****************\nGo left or right? ")
print(“You got out of the Lost Woods\o/”)