Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Common Words by radekj
import itertools
def checkio(first, second):
result = []
for i, j in itertools.combinations(first.split(',') + second.split(','), 2):
if i == j:
result.append(i)
return ','.join(sorted(result))
#These "asserts" using only for self-checking and not necessary for auto-testing
May 19, 2014
Comments: