Mar-22-2017, 05:36 AM
given 2 or more lists, i'd like to get a list of the common elements. if the order gets re-arranged that is ok.
a=['apple','banana','cherry','lemon','orange'] b=['car','lemon',80,443,'python','banana','yellow'] c=commonlist(a,b) print(c)
Output:['banana','lemon']
is there an easy way to do that?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.