@acwoss/

GraveCourageousAmoebas

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
def fatorial_range(n):
    """ Retorna o fatorial de todos os números entre 1 e n """
    next_result = 1
    for i in range(1, n+1):
        yield next_result
        next_result *= i + 1
        
for fat in fatorial_range(1000):
    print(fat)