Write an algorithm that tells me if 2 and only two numbers in a 1x3 array are the same.
Sigiloso
llist.sort() my_new_list = list(set(llist)) my_dict = dict((my_new_list[i],llist.count(my_new_list[i])) for i in range(len(my_new_list))) for key,val in sorted(my_dict.items()): if val == 2: print key