nohear = ["ohhenrie", "charlie", "baesangwook"] nosee = ["obama", "baesangwook", "ohhenrie"] common = set(nohear).intersection(nosee) common_sorted = sorted(common) print(common_sorted)
To embed this project on your website, copy the following code and paste it into your website's HTML: