return dupicates from 2 lists python without using set code example Example: sort and remove duplicates list python myList = sorted(set(myList))