summaryrefslogtreecommitdiff
path: root/wk6/pset
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-05-06 04:06:53 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-05-06 04:06:53 +0000
commitaf693a25f8f95f00e14c7373011e5b07f29083f5 (patch)
tree2136cc6779fa3d32d4a17b20c37763e1a9a4aab1 /wk6/pset
parent158610d4e1d37873f1add3a32b2b6ef697daccc7 (diff)
Sun, May 5, 2024, 9:06 PM -07:00
Diffstat (limited to 'wk6/pset')
-rw-r--r--wk6/pset/dna/dna.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/wk6/pset/dna/dna.py b/wk6/pset/dna/dna.py
index a4f3cca..3583852 100644
--- a/wk6/pset/dna/dna.py
+++ b/wk6/pset/dna/dna.py
@@ -9,7 +9,13 @@ def main():
print("Oopsie you used the wrong number of arguments D: you should use two next time :3")
return
- if sys.argv[0].
+ if not sys.argv[0].endswith('.csv'):
+ print("Oh no, that isn't a csv file :( that won't work can you fix that please?")
+ return
+
+ if not sys.argv[1].endswith('.txt'):
+ print("Oh no, that isn't a txt file :( that won't work can you fix that please?")
+ return
# TODO: Read database file into a variable