Advertisement
Felanpro

Serious with functions

Mar 5th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. def add(num1, num2):     #Setting up a basic calc.
  2.     return num1 + num2
  3.  
  4. myValue = add(1, 3) #adding arguments for add function
  5.  
  6. print(myValue)
  7.  
  8.  
  9. #You could also just do this
  10.  
  11. print(add(1, 9))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement