Hello Everyone,
I just joined here hoping to increase my knowledge at python. I have been beginning to learn this language as of yesterday. I have decided that if I really want to increase my knowledge I should start on a project. Well here is my first project, a simple calculator. But for whatever reason when I run the program I'm getting some strange errors... Whatever help and advice you guys could give me would be most appreciated!
#Calculator Test1
print "Calculator:"
print "1)+"
print "2)-"
print "3)*"
print "4)/"
print " "
print "Select Choice:"
op = input(">")
print " "
#Add
if op == "1":
print "a + b"
add1 = input("a:")
add2 = input("b:")
print "a + b =", add1+add2
#Sub
if op == "2":
print "a - b"
sub1 = input("a:")
sub2 = input("b:")
print "a - b =", sub1-sub2
#Multi
if op == "3":
print "a * b"
mul1 = input("a:")
mul2 = input("b:")
print "a * b =", mul1*mul2
#Div
if op == "4":
print "a / b"
div1 = input("a:")
div2 = input("b:")
print "a / b =", div1/div2
Thanks,
Inkcoder