Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Common Words by magda_kudrycka
def checkio(first, second):
a = sorted(first.split(","))
b = sorted(second.split(","))
stos = []
for x in a:
for y in b:
if x == y:
stos.append(x)
sorted(stos)
return ','.join(stos)
Nov. 27, 2016