Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
One-liner. solution in Creative category for Common Words by Celshade
def checkio(first: str, second: str) -> str:
"""Return any common words found between two strings.
Args:
first: The first string.
second: The second string.
"""
return ",".join(sorted(word for word in first.split(",")
if word in second.split(",")))
Aug. 15, 2018