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}')