diff options
Diffstat (limited to 'wk6/pset/dna')
-rw-r--r-- | wk6/pset/dna/dna.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/wk6/pset/dna/dna.py b/wk6/pset/dna/dna.py index 0196256..00e148e 100644 --- a/wk6/pset/dna/dna.py +++ b/wk6/pset/dna/dna.py @@ -51,11 +51,11 @@ def main(): counter = 0 for i in range(len(fields)): if fields[i] != 'name': - if person[fields[i]] != matches[i]: - print(person[fields[i]], matches[i]) - break - else: + if person[fields[i]] == matches[i]: counter += 1 + print(counter) + else: + break print(counter, ',', len(fields)) if counter == len(fields): print(person['name']) |