Hi thanks for speedy reply.......Yes i want it to loop until ALL names are deleted, but say for instance if you mis-spell the name
or forget to put a capital on the beginning of the name, then it should say "No such name, please re-enter"
Im trying to understand the IF statements better i know its something im missing that probs very simple but as im a n00b to this language i cant figure out.
This error just appeared with your code:
Enter a name to remove: sadsa
Traceback (most recent call last):
File "D:\Users\********\Desktop\example.py", line 9, in <module>
print a + " not found in names: " + names
TypeError: cannot concatenate 'str' and 'list' objects
-- Thu Jan 03, 2013 10:11 pm --
Ahhh my bad i took the + operator out and works fine now! thanks man!