i have this code:
import random
choices = ['closet', 'lampshade', 'fridge']
print "i have hidden 10,000,000 pounds in one of these places:", choices
choice = raw_input("Where do you want to search? ('closet', 'lampshade', 'fridge')")
random_c = random.choice(choices)
while choice != random_c:
choices.del(random_c)
for word in choices:
if choice == word:
print word, "is not where it is hidden"
choice = raw_input("where do you want to search?", choices)
print choice, "is where it is hidden well done"
but whenever i run it it comes it with this error:
> "C:\Python25\pythonw.exe" -u "C:\Python25\word_based game 1.py"
File "C:\Python25\word_based game 1.py", line 9
choices.del(random_c)
^
SyntaxError: invalid syntax