When my program enters the fearList() function it will sit at a blank line and I'm unable to enter anything.
Thanks for the help.
Code:
myFears=[]
def firstFear():
if len(myFears) < 1:
print "You have not entered any fears yet. Please enter one now."
fear=raw_input("What is a fear of yours?")
myFears.append(fear)
return
def fearList():
Running = True
print "Your current fears are", myFears
toDo=raw_input("Do you want to delete a fear, add one, or leave? (del, add, lev)")
while Running:
if toDo =="add" "ADD" "Add":
addFear=raw_input("What is your fear?")
myFears.append(addFear)
elif toDo == "del" "DEL" "Del":
delFear=raw_input("What fear have you overcome?")
myFears.remove(delFear)
print "Fear has been deleted"
elif toDo == "lev" "LEV" "Lev":
print "Goodbye"
Running = False
break
else:
global toDo
firstFear()
fearList()
Comment