Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Define a function
- def func():
- print("\nThis is the first function")
- # Define a second function that takes any function as argument and executes it
- def func1(anyfunc):
- anyfunc()
- # Call func1 by passing func as argument
- func1(func)
Add Comment
Please, Sign In to add comment