a = input("What should i do? Cave(1) or the forest(2)")
if a == '1':
print("you walk into the cave, with no way of seeing in the dark abyss you fall, maybe 10 or 20 feet. your legs break on impact. you slowly bleed out and die.")
print ("Too bad, maybe the woods is a better area. Try again, wont you?")
if a == '2':
print("You walk into the forest, you still have a feeling like you're being watched. you find an axe beside a giant oak tree. what to do?")
So if a = 1 i want the program to restart and ask (a) again
we use pyscripter in out school, thats why its not just regular pyshell
This post has been edited by Simown: 27 November 2012 - 10:07 AM
Reason for edit:: Code tags!

New Topic/Question
Reply



MultiQuote



|