Jan-10-2019, 04:36 PM
Good day dear people, i just need little help with my code. I have to make list without repetitions from the one that has repetitions. I don't know where am i making a mistake. this is code:
liss=[6,7,5,3,6,8,9,6,4,3,2,5,6,8,9,0,1,98] def lwr(liss): liss.sort(key=None,reverse=False) print(liss) i=1 liss1=[] for n in liss: if n!=liss[i]: liss1.append(n) i+=1 else: continue return print(liss1) lwr(liss)Thank you.