Advertisement
Guest User

calculator.py

a guest
Aug 9th, 2016
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  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()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement