Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
asplake
· 2y ago · 0 comments
Oops yes! And unfortunately it still doesn't work for n=0
Edit: prod(range(1, n+1)) does work
Comments
[–]
gshubert17
2y ago
My oops too. The extra 1 argument belongs with range, as you have it here.