Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Common Words by a.a.v.worker
checkio = lambda first, second: ",".join(sorted(set(first.split(",")).intersection(set(second.split(",")))))
#
#def checkio(first, second):
# result = []
# for fst in first.split(","):
# for snd in second.split(","):
# if fst==snd: result.append(fst)
# return ",".join(sorted(result))
#
#
#def checkio(first, second):
# return ",".join(sorted(set(first.split(",")).intersection(set(second.split(",")))))
Aug. 2, 2015