Ceridan

Untitled

Oct 29th, 2020
509
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from collections import Counter
  2.  
  3. import utils
  4.  
  5.  
  6. def solution(data: str) -> str:
  7.     cnt = Counter(data)
  8.     unique_chars = [k for k, v in cnt.items() if v == 1]
  9.     return "".join(unique_chars)
  10.  
  11.  
  12. input_data = utils.read_input_from_file(level=2)
  13. sol = solution(input_data)
  14. utils.print_solution(sol)
  15.  
RAW Paste Data