how to use coroutine function in python code example Example: coroutines in python def randn(): time.sleep(3) return randint(1, 10)