From af693a25f8f95f00e14c7373011e5b07f29083f5 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Mon, 6 May 2024 04:06:53 +0000 Subject: Sun, May 5, 2024, 9:06 PM -07:00 --- wk6/pset/dna/dna.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'wk6/pset') 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 -- cgit v1.2.3