Lame solution
This commit is contained in:
parent
549923cc01
commit
d67fa51d83
|
@ -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)
|
Loading…
Reference in New Issue