I'm trying to put in some code that will delete a list from a list. For example if the user decides to delete the first names he would type in 'first' (w/out quotes). however after they input the name nothing prints out. Any suggestions?
person = ' '
first = ['robert', 'jim', 'jack']
last = ['smith', 'white', 'black']
peeps = [first, last]
pName = raw_input("Do you wish to delete 'first' or 'last' ?: ")
for person in peeps:
if person == "%s" % (pName):
pName = person
print person
peeps.remove(person)
print peeps