import asyncio
import math
numeros = [5, 3, 7, 4, 6]
async def fator(x):
await asyncio.sleep(x)
valor = math.factorial(x)
print(f"Fatorial de {x} = {valor}")
async def main():
tasks = [ asyncio.create_task(fator(n)) for n in numeros]
await asyncio.gather(*tasks)
asyncio.run(main())