From 1c13af6eabef0c7a054d2bc27aed60857395579c Mon Sep 17 00:00:00 2001
From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com>
Date: Mon, 20 May 2024 08:12:24 +0000
Subject: Mon, May 20, 2024, 1:12 AM -07:00

---
 wk6/pset/dna/dna.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

(limited to 'wk6/pset/dna')

diff --git a/wk6/pset/dna/dna.py b/wk6/pset/dna/dna.py
index 0e7bb14..5140cf0 100644
--- a/wk6/pset/dna/dna.py
+++ b/wk6/pset/dna/dna.py
@@ -36,10 +36,12 @@ def main():
     # TODO: Find longest match of each STR in DNA sequence
     matches = []
 
-    for field in len(fields):
-        print(field)
-        if not fields[1] == 'name':
-            matches[field] = longest_match(sequence, fields[field])
+    for i in range(len(fields)):
+        print(i)
+        if not fields[i] == 'name':
+            matches[i] = longest_match(sequence, fields[i])
+        else:
+            matches[i] = ''
 
     print(matches)
 
-- 
cgit v1.2.3