https://school.programmers.co.kr/learn/courses/30/lessons/12916?language=python3
def solution(s): return s.lower().count('p') == s.lower().count('y')