Advertisement
oquidave

python function defination

May 7th, 2011
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. #function call
  2. res = myfn(20)
  3. print res
  4.  
  5. #fuction defination
  6. def myfn(num):
  7. result = num +10
  8. return result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement