diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-06 04:06:53 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-06 04:06:53 +0000 |
commit | af693a25f8f95f00e14c7373011e5b07f29083f5 (patch) | |
tree | 2136cc6779fa3d32d4a17b20c37763e1a9a4aab1 /wk6/pset | |
parent | 158610d4e1d37873f1add3a32b2b6ef697daccc7 (diff) |
Sun, May 5, 2024, 9:06 PM -07:00
Diffstat (limited to 'wk6/pset')
-rw-r--r-- | wk6/pset/dna/dna.py | 8 |
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 |