def solution(s):
if s.lower().count("p") == s.lower().count("y"):
return True
else:
return False
'Coding Test > Programmers_Python' 카테고리의 다른 글
[프로그래머스/python] 같은 숫자는 싫어 (0) | 2020.07.06 |
---|---|
[프로그래머스/python] 평균 구하기 (0) | 2020.07.03 |
[프로그래머스/python] 약수의 합 (0) | 2020.07.03 |
[프로그래머스/python] 서울에서 김서방 찾기 (0) | 2020.07.02 |
[프로그래머스/python] 수박수박수박수박수박수? (0) | 2020.07.02 |