From b8ea4c03ad09ac346db807dee396c097788b2ffe Mon Sep 17 00:00:00 2001 From: itsmausam <139794566+itsmausam@users.noreply.github.com> Date: Wed, 28 Aug 2024 21:08:23 +0545 Subject: [PATCH] commit --- calc.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/calc.py b/calc.py index de80b21..2e00904 100755 --- a/calc.py +++ b/calc.py @@ -58,21 +58,21 @@ def div(a, b): a = int(a) b = int(b) except ValueError: - print "Invalid number argument..." + print ("Invalid number argument...") op = None # decide function if (op != None): if (op == "+"): - print "Sum: ", add(a, b) + print ("Sum: "), add(a, b) elif (op == "-"): - print "Difference: ", sub(a, b) + print ("Difference: "), sub(a, b) elif (op == "*"): - print "Product: ", mult(a, b) + print ("Product: "), mult(a, b) elif (op == "/"): - print "Quotient: ", div(a, b) + print ("Quotient: "), div(a, b) else: - print "Invalid operation..." + print ("Invalid operation...") q = raw_input("Quit? [y/n] ") if (q == "y" or q == "Y"):