Possible Duplicate:
Remove items from a list while iterating in Python
Hi im having a problem i cant seem to delete items whilst iterating through a list in python, Here is what i've got: a title should be removed if a user Inputs n or N when asked the question to delete in the for loop, the problem is that when its all done the items are all still there and none have been removed...
    titles_list = ["English", "Math", "History", "IT", "Biology", "Spanish"]
    for title in titles_list:
        print "Do you want to keep the title:", title , "\n or Delete it ? Input Y for keep, N for Delete "
        Question = raw_input()
        if str(Question.upper) == "N":
            titles_list.remove(title)
print titles_list
 
     
     
     
     
    