Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
GraveCourageousAmoebas created by acwoss -
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):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.