Please don't use html mail in a text newsgroup. And especially
don't select black on black for your foreground and background
colors.
Caroline H Wrote in message:
>
create a new sorted list consisting of all the elements of lst1 that also
appears in lst2 .
Are you permitted at this stage
On 26/10/14 22:15, Caroline H wrote:
For example,
lst1 = [2,5,6,7,2]
lst2 = [2,4]
it comes up with new_list = [2] when I need it to come up with new_list
= [2,2]
Check the logic in the if statement. Walk through it and se if it does
what you expect. You are basically doing the right thing, e