AlexG2230954

ДЗ. Задание 9

May 22nd, 2022 (edited)
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. from collections import Counter
  2.  
  3.  
  4. a = input().replace(",", "").replace(".", "").lower().split()
  5. b = input().replace(",", "").replace(".", "").lower().split()
  6.  
  7. print("YES" if Counter(a) == Counter(b) else "NO")
Add Comment
Please, Sign In to add comment