Guest User

Untitled

a guest
Apr 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. # Define a function
  2. def func():
  3. print("\nThis is the first function")
  4.  
  5. # Define a second function that takes any function as argument and executes it
  6. def func1(anyfunc):
  7. anyfunc()
  8.  
  9. # Call func1 by passing func as argument
  10. func1(func)
Add Comment
Please, Sign In to add comment