Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. 1:) n = input(" select first number: ")
  2. 2:) d = raw_input("What operation: ")
  3. 3:) print " What operation: " + str(d)
  4. 4:) n1 = input(" select second number ")
  5.  
  6. 6:) if d == "+":
  7. 7:) print "Did you know that " + str(n) + " plus " + str(n1) + " is "
  8. 7:) + str(n+n1)+ "?"
  9. 8:)
  10. 9:)print " "
  11. 10:)print "Goodbye"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement