Post History
Python 2, 33 bytes lambda a,b:reduce(a,range(1,1+b)) Try it online! Or, without using the reduce built-in: Python 2, 37 bytes f=lambda a,b:b-1and a(f(a,b-1),b)or 1 Try it online!
Answer
#1: Initial revision
# [Python 2], 33 bytes <!-- language-all: lang-python --> lambda a,b:reduce(a,range(1,1+b)) [Try it online!][TIO-ks6clmqv] [Python 2]: https://docs.python.org/2/ [TIO-ks6clmqv]: https://tio.run/##K6gsycjPM/qfZhvzPycxNyklUSFRJ8mqKDWlNDlVI1GnKDEvPVXDUMdQO0lT839BUWZeiUaaBpDUi4/PLc2Jj9dRMAVKAAA "Python 2 – Try It Online" Or, without using the `reduce` built-in: # [Python 2], 37 bytes <!-- language-all: lang-python --> f=lambda a,b:b-1and a(f(a,b-1),b)or 1 [Try it online!][TIO-ks6cmq5p] [Python 2]: https://docs.python.org/2/ [TIO-ks6cmq5p]: https://tio.run/##K6gsycjPM/r/P802JzE3KSVRIVEnySpJ1zAxL0UhUSNNA8jVNdTUSdLML1Iw/F9QlJlXAhQFknrx8bmlOfHxOgqmmpr/AQ "Python 2 – Try It Online"