Guest User

Untitled

a guest
Dec 7th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. print "My Calc"
  2. x = raw_input("First number: ")
  3. y = raw_input("Second number: ")
  4. print "chose technique [1 2 3 4]"
  5. z = raw_input("1 +, 2 -, 3 *, 4 /, :  ")
  6. if z == 1:
  7.         print x + y
  8. elif z == 2:
  9.         print x - y
  10. elif z == 3:
  11.         print x * y
  12. elif z == 4:
  13.         print x / y
  14. else:
  15.         print "do not comply"
Add Comment
Please, Sign In to add comment