Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> def do_twice(f) :
- ... f()
- ... f()
- ...
- >>> def print_spam() :
- ... print 'spam'
- ...
- >>> do_twice(print_spam)
- spam
- spam
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement