Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Intersection solution in Clear category for Common Words by bryukh
def checkio(first, second):
"""
set data type has useful methods.
"""
first_set, second_set = set(first.split(",")), set(second.split(","))
common = first_set.intersection(second_set)
return ",".join(sorted(common))
Feb. 20, 2014
Comments: