Wie würde ich dieses Problem beheben:
print 'Adventure Game' choice_1 = raw_input('You are travelling down a long road, there is a fork in the route, one side goes to a jungle, and the other leads to a hill biome, which side do you choose? J for Jungle, H for Hill ') if choice_1 == 'J': print 'Jungle?, very well then' elif choice_1 == 'H': print 'Hill, good decision' if choice_1 == 'J': choice_2 = raw_input('In the jungle, a king cobra appears behind you, as you look forward, an ape leaps from a tree onto the ground. Do you take your chances with the venomous king cobra, or the enormous ape? C for cobra, A for ape ') while choice_2 != 'A': print 'Sorry, you were bit by the cobra and died' print 'Please try again' if choice_2 == 'A': break elif choice_2 == 'A': print 'You were almost mauled by the ape, luckily, it fleed the scene after loosing sight of you'
ich will es neu zu starten, wenn der Benutzer c für choice_2 wählt, und so, dass es beginnt von Anfang an jedes einzelne Mal, dass dies geschieht,