from time import time
inicio = time()
def fatorial(numero):
total = 1
for i in range(1, numero+1):
total *= i
return total
print(fatorial(6))
final = time()
print(f'O tempo total em segundos foi {final-inicio}')
Este site utiliza cookies para melhorar sua experiência. Ao continuar navegando, você concorda com o uso de cookies.