import asyncio
async def hello():
print("Hello world!")
await asyncio.sleep(1)
print("Hello again!")
loop = asyncio.get_event_loop()
tasks = [hello(), hello(),hello(), hello()]
loop.run_until_complete(asyncio.wait(tasks))
loop.close()
import asyncio
async def hello():
print("Hello world!")
await asyncio.sleep(1)
print("Hello again!")
loop = asyncio.get_event_loop()
tasks = [hello(), hello(),hello(), hello()]
loop.run_until_complete(asyncio.wait(tasks))
loop.close()