add 4.10.1

This commit is contained in:
Joe S 2021-01-31 18:06:16 -05:00
parent 5546a6d8f9
commit 8ec38fd2ea
1 changed files with 7 additions and 0 deletions

7
4/4.10/4.10.1/main.py Normal file
View File

@ -0,0 +1,7 @@
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)