Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- words = [item for item in input().split(" ")]
- counts = {}
- counts_result = []
- for word in words:
- if word.lower() in counts:
- counts[word.lower()] += 1
- else:
- counts[word.lower()] =1
- for word in counts:
- if counts[word] % 2 != 0:
- counts_result.append(word)
- print(",".join(counts_result))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement