TEAMLAB-Lecture / python-101-for-data-science-by-pknu

1 stars 14 forks source link

baseball_game.py three digit 문제 관련 질문 #33

Closed 54162476 closed 2 years ago

54162476 commented 2 years ago
def is_duplicated_number(three_digit):
if three_digit[0] == three_digit[1]:
    result = True
elif three_digit[0] == three_digit[2]:
    result = True
elif three_digit[1] == three_digit[2]:
    result = True
else :
    result = False

이렇게 코드를 짜서 테스트해보니 다 잘 나왔는데 제출을 하니 pass가 나오지 않습니다.