41621/how-to-remove-the-duplicate-values-in-a-list
a = [10,20,30,40,10,20,30,40,30,40,50,60]
how to remove only the duplicate values from this?
s = set(a)
c = list(s) print(c)
this will remove the duplicate values from the list.
Hi, it is pretty simple, to be ...READ MORE
1) Count total number of numbers in ...READ MORE
You can get the ASCII value of ...READ MORE
Consider a list of numbers. Write a ...READ MORE
suppose you have a string with a ...READ MORE
You can also use the random library's ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
Python doesn't have a native array data ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
suppose you have a list with the ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.