SNHU-IT-140/4/4.10/4.10.1/main.py

7 lines
165 B
Python

user_score = 0
simon_pattern = input()
user_pattern = input()
user_score = sum(a==b for a, b in zip(simon_pattern, user_pattern))
print('User score:', user_score)