💡 Python 3
문자열 내 p와 y의 개수 [Link]
def solution(s): from collections import Counter counter = Counter(s.lower()) return counter['p'] == counter['y']