SHARE
TWEET

calculator.py

a guest Aug 9th, 2016 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def calculate():
  2.     import adder
  3.    
  4.     print("Input a number     ")
  5.     d = input()
  6.     d = int (d)
  7.  
  8.     print("Input a number     ")
  9.     e = input()
  10.     e = int (e)
  11.  
  12.     f = adder.add(d,e)
  13.    
  14.     print("So", d, "plus", e, "is")
  15.     print(f)
  16.     return(f)
  17.    
  18. if __name__ == ("__main__"):
  19.     calculate()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top