Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print "My Calc"
- x = raw_input("First number: ")
- y = raw_input("Second number: ")
- print "chose technique [1 2 3 4]"
- z = raw_input("1 +, 2 -, 3 *, 4 /, : ")
- if z == 1:
- print x + y
- elif z == 2:
- print x - y
- elif z == 3:
- print x * y
- elif z == 4:
- print x / y
- else:
- print "do not comply"
Add Comment
Please, Sign In to add comment