Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Clean and simple. solution in Clear 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.
"""
common = []
for word in first.split(","):
if word in second.split(","):
common.append(word)
return ",".join(sorted(common))
Aug. 15, 2018