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)
this will remove the duplicate values from the list.
Hi, it is pretty simple, to be ...READ MORE
To count the number of elements of ...READ MORE
You can get the ASCII value of ...READ MORE
1. By using max function -
highest = ...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
colors = ['red', 'green', ...READ MORE
suppose you have a list with the ...READ MORE
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.