Thank you for your help. It works great. Edward -----Original Message----- From: programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Ken Perry Sent: Tuesday, October 27, 2009 10:21 PM To: programmingblind@xxxxxxxxxxxxx Subject: RE: Python code Your close but the append is wrong first you spelled it wrong and second you used ti wrong. The list is the object with the function append so it should look like newList.append(item) If you fix that it will work. Ken From: programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of edward Sent: Tuesday, October 27, 2009 7:53 PM To: programmingblind@xxxxxxxxxxxxx Subject: Python code hello all, i changed the code below. edward def dup(old_list): new_list=[] for item in old_list: if item not in new_list: new_list=apend.item return new_list a=['eggs','bread','soda','bread'] b=dup(a) print b __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind