Advertisement
pleabargain

PTHW ex 19 extra credit

May 4th, 2013
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. #ex 19 extra credit
  2. #http://learnpythonthehardway.org/book/ex19.html
  3. #write my own function
  4.  
  5. #keep it straightforward
  6.  
  7. arg1= int(input("Type an integer: "))
  8. arg2= int(input ("type another: "))
  9.  
  10. def simple_add(arg1, arg2):
  11.     print ("{} + {} = {}".format(arg1,arg2, arg1 + arg2))
  12.  
  13. simple_add(arg1,arg2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement