← Projects

Delete calc.py

2a51eb2c546b9778e101d4a330f59f49967721c9 · ovidiucs · Jul 14, 2013 23:50

−22 · 1 file changed

  • Numbers/calc.py +0 −22
diff --git a/Numbers/calc.py b/Numbers/calc.py
deleted file mode 100644
index 3d8dd66..0000000
--- a/Numbers/calc.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# -*- coding: cp1252 -*-
-"""
-Calculator  A simple calculator to do basic operators.
-"""
-
-if __name__ == '__main__':
-    num1 = input("Number 1: ")
-    num2 = input("Number 2: ")
-    op = raw_input("Operation (+, -, /, *): ")
-
-    if op not in '+-/*':
-        print "Invalid operator"
-    else:
-        if op == '+':
-            res = num1 + num2
-        elif op == '-':
-            res = num1 - num2
-        elif op == '/':
-            res = num1 / num2
-        elif op == '*':
-            res = num1 * num2
-        print "%d %s %d = %d" % (num1, op, num2, res)