# list1 = ['딸기', '포도', '체리', '사과']
# list1.pop(0)
# list1.pop()
# list2 = ['사탕', '사탕', '쿠키', '쿠키', '젤리']
# print(list2.count('사탕'))
# my_str = 'pythonahello'
# print(my_str.split('a'))
# my_str2 = '1 2 3 4 5'
# print(my_str2.split())

def animal_quiz():
    count = 0
    print("멍멍멍멍!")
    answer = input('')
    if answer == '강아지' or answer == '개':
        print("정답입니다!")
        count += 1
    else:
        print("오답입니다!")

    print("야옹야옹!")
    answer = input('')
    if answer == '고양이':
        print("정답입니다!")
        count += 1
    else:
        print("오답입니다!")

    print("악어악어!")
    answer = input('')
    if answer == '악어':
        print("정답입니다!")
        count += 1
    else:
        print("오답입니다!")

    print("게임 끝!")
    print(f"총 맞춘 문제 수: {count}")

animal_quiz()


    
    

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: