<filename>sleep/sleep.py
import asyncio

lstin = []
lstout = []

async def sort(num):
	await asyncio.sleep(num)
	lstout.append(num)
	print(lstout)

lstin = [int(x) for x in input('lstin: ').split()]
loop = asyncio.get_event_loop()
group = [sort(num) for num in lstin]
loop.run_until_complete(asyncio.gather(*group))
print('Done.')

<filename>sleep/sleep.py
import asyncio

lstin = []
lstout = []

async def sort(num):
	await asyncio.sleep(num)
	lstout.append(num)
	print(lstout)

lstin = [int(x) for x in input('lstin: ').split()]
loop = asyncio.get_event_loop()
group = [sort(num) for num in lstin]
loop.run_until_complete(asyncio.gather(*group))
print('Done.')
