how are coroutines implemented python code example Example: coroutines in python def randn(): time.sleep(3) return randint(1, 10)