chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:22:17 +08:00
commit 4d7ba00a23
95 changed files with 6907 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
def factorial():
f, n = 1, 1
while True: # First iteration:
yield f # yield 1 to start with and then
f, n = f * n, n+1 # f will now be 1, and n will be 2, ...
for index, factorial_number in zip(range(51), factorial()):
print('{i:3}!= {f:65}'.format(i=index, f=factorial_number))