Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
15 lines (12 sloc)
373 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |