daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"
RAW Paste Data
Top