Delete Duplicate numbers in a list

l1=list()
l2=list()
w=int(raw_input("Enter the elements in list:"))
for i in range(w):
      n=int(raw_input("Enter the list:"))
      l1.append(n)

for i in l1:
 if i not in l2:
  l2.append(i)
print ' Delete Duplicate numbers in a list: ', l2

No comments: