import asyncio import time def f1(): for i in range(100,10000): time.sleep(10) print(i) async def run(): print(1) f1() print(2) asyncio.run(run())