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
can you give an example using a ...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
Already have an account? Sign in.