- Code: Select all
`print "Welcome to my simple calculator. You can either add or subtract 2 numbers."`

choice = raw_input("Type add for addition or minus for subtraction.")

if choice = add:

a = raw_input("Enter your first number")

b = raw_input("Enter your second number")

final add = a + b

print final add

elif choice = minus:

c = raw_input("Enter your first number")

d = raw_input("Enter your second number")

final sub = c - d

print final sub

else:

print "You did not select addition or subtraction"

Thanks in advance for the help