Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ex 19 extra credit
- #http://learnpythonthehardway.org/book/ex19.html
- #write my own function
- #keep it straightforward
- arg1= int(input("Type an integer: "))
- arg2= int(input ("type another: "))
- def simple_add(arg1, arg2):
- print ("{} + {} = {}".format(arg1,arg2, arg1 + arg2))
- simple_add(arg1,arg2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement