Skip to content
On this page

04_Loop_03.py

WARNING

โค้ดกาวมากครับ อย่าลอกเลย 😭😭😭

ทำเองเถอะนะครับ จะได้ทำข้อสอบได้ 🥲🥲🥲

py
import sys


key = input()
answer = input()

if len(key) != len(answer):
    print("Incomplete answer")
    sys.exit(0)

score = 0

for k, a in zip(key, answer):
    if k == a:
        score += 1

print(score)

People who plagiarize Com Prog HW:

People who do Com Prog HW by themself:

Released under the MIT License