From 682de0bf4cc5fc08d8db4818a35a959ad158a89e Mon Sep 17 00:00:00 2001 From: caill34 <91425014+caill34@users.noreply.github.com> Date: Tue, 23 Nov 2021 20:19:12 +0000 Subject: [PATCH] Delete add2vals.py --- sources/add2vals.py | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 sources/add2vals.py diff --git a/sources/add2vals.py b/sources/add2vals.py deleted file mode 100644 index d671e38..0000000 --- a/sources/add2vals.py +++ /dev/null @@ -1,25 +0,0 @@ -''' -A simple command line tool that takes 2 values and adds them together using -the calc.py library's 'add2' function. -''' - -import sys -import calc - -argnumbers = len(sys.argv) - 1 - -if argnumbers == 2 : - print("") - print("The result is " + str(calc.add2(str(sys.argv[1]), str(sys.argv[2])))) - print("") - sys.exit(0) - -if argnumbers != 2 : - print("") - print("You entered " + str(argnumbers) + " value/s.") - print("") - print("Usage: 'add2vals X Y' where X and Y are individual values.") - print(" If add2vals is not in your path, usage is './add2vals X Y'.") - print(" If unbundled, usage is 'python add2vals.py X Y'.") - print("") - sys.exit(1)