import asyncio
async def first():
await asyncio.sleep(30)
return (2)
async def second():
await asyncio.sleep(20)
return (1)
async def main():
print("Продолжаем")
for fut in asyncio.as_completed([first(), second()]):
resp = await fut
print(f'Ваш ответ:{resp}')
asyncio.run(main())