<jupyter_start><jupyter_text>2020년 7월 31일 금요일 leetCode - Uncommon Words from Two Sentences (Python) 문제 : https://leetcode.com/problems/uncommon-words-from-two-sentences/ 블로그 : https://somjang.tistory.com/entry/leetCode-884-Uncommon-Words-from-Two-Sentences-Python  첫번째 시도<jupyter_code>from collections import Counter

class Solution:
    def uncommonFromSentences(self, A: str, B: str) -> List[str]:
        array = A.split(" ") + B.split(" ")
        
        cnt = list(Counter(array).items())
        
        answer = [item[0] for item in cnt if item[1] == 1]
        
        return answer<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12980769230769232, 'fraction_numerical': 0.020833333333333332, 'mean_word_length': 3.1946308724832213, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '612872', 'license': 'MIT', 'n_tokens_mistral': 239, 'n_tokens_neox': 238, 'n_words': 45, 'path': 'DAY 101 ~ 200/DAY176_[leetCode] Uncommon Words from Two Sentences (Python).ipynb', 'repo_name': 'SOMJANG/CODINGTEST_PRACTICE', 'size': '624'}