Asyncio execution flow issue
问题 i am a little new to asyncio in python. I was trying to run this simple code but i don't know why i am getting this unexpected output. What i did is that, in outer function, i created async tasks and stored it in an array tasks . Before awaiting on these tasks i wrote a print statement print("outer") that should run in every iteration. And inside the task i wrote another print statement print("inner") in inner function. But some how i am getting some unexpected output. Here's the code -