I am beginner in python, I was writing a code to remove all duplicate numbers from list.
first I tried using for loop but I got similar error
lis=[]
lis2=[]
n=print("enter number of items you want in the list \n")
i=0
while (i<n):
a=input("enter element number ",i+1)
lis.extend(a)
i=i+1
for j in lis:
if j not in lis2:
lis2.extend(j)
print(" \n list after removing duplicates \n",lis2)
input()
Error: '<' not supported between instances of 'int' and 'NoneType'