Loading...
Engaged Employer
remove duplicate list values in python ? s = [10,20,30,20,10,40,50]
Anonymous
s = [10,20,30,20,10,40,50] p = [] for new in s: if new not in p: p.append(new) print(p)
Bro it's more easy s = [10,20,30,20,10,40,50] s = list(set(s)) print(s)
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.