• + 4 comments

    You can achieve this in one line in python ->

    print reduce(lambda x, y: x*y, range(n+1)[1:])