Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 373 Bytes
number1 = int(raw_input("Give me a number: "))
number2 = int(raw_input("Give me another number: "))
operation = raw_input("Give me an operator:" )
if operation == '+':
a = number1 + number2
elif operation == '-':
a = number1 - number1
elif operation == '*':
a = number1 * number1
elif operation == '/':
a = number1 / number1
print "The answer is", a
You can’t perform that action at this time.