[Tutor] Please help me to see what's wrong with the code (original) (raw)
ivan low visional_freeman at yahoo.com
Sun Jul 25 10:04:27 CEST 2004
- Previous message: [Tutor] Permutations?
- Next message: [Tutor] Please help me to see what's wrong with the code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
word = [] function = None while function != "0":
entry = raw_input("enter function: ")
#continue the game
if function == "0":
print "Welcome to word game 2.0"
#add word to the list
elif function == "1":
add = raw_input("Please add word: ")
new = (add)
word.append(new)Does anybody know what is wrong with the code. When I enter function #1 I can't access the "please add word" The loop just continue displaying the number I had enter in "entry"
Ivan
- Previous message: [Tutor] Permutations?
- Next message: [Tutor] Please help me to see what's wrong with the code
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]