Skip to content
Minsing Log
Go back

English Edition

Is there a function called by another function? (Callback Function)

Programming & CS

Conclusion

Example)

def callback_func(func):
	for i in range(5):
    	func(i)
        
def print_hello(num):
	print('hello', num)
    
callback_func(print_hello)

References https://coding-yesung.tistory.com/20

Follow the journey

Get new posts by email.

Short, honest notes on building, startups, learning, failures, and retrospectives, for readers who follow the journey rather than pass through from search.

The newsletter is coming soon. Until then, follow via RSS or email me to get notified.


Share this post:

Comments

Sign in with GitHub to leave a comment.


Previous Post
Retrying Functions with Tenacity
Next Post
The Unspoken Rules of Naming