Lame solution

This commit is contained in:
Joe S 2021-02-03 16:53:25 -05:00
parent 549923cc01
commit d67fa51d83
1 changed files with 7 additions and 1 deletions

View File

@ -2,6 +2,12 @@ user_score = 0
simon_pattern = input()
user_pattern = input()
user_score = sum(a==b for a, b in zip(simon_pattern, user_pattern))
#user_score = sum(a==b for a, b in zip(simon_pattern, user_pattern))
for char in enumerate(list(simon_pattern)):
if user_pattern[char[0]] == char[1]:
user_score += 1
else:
break
print('User score:', user_score)