Generator Functions in Python: How to Pause a Function Mid-Execution
Here's something Python can do that JavaScript can't, at least not natively, without async/await:
def count_up():
yield 1
yield 2
yield 3
Call that function and you don't get 1. You also
blog.moussaamzat.dev10 min read