Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
messe
on Oct 28, 2019
|
parent
|
context
|
favorite
| on:
Ask HN: What is the most beautiful piece of code y...
Not only that but in python 3.8, it can be written:
def factorial(n): return math.prod(range(1,n+1))
estomagordo
on Oct 28, 2019
[–]
Nice!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: