The author posted a question in Programming
The sum of the factorials of Python? and got a better answer
Response from
Response from 0[+++++]
N= 6 myList= list range 1,N+1 itog= myList[0] for i in myList: itog *= i print myList print itog >>> [1, 2, 3, 4, 5, 6] 720
N= 6 myList= list range 1,N+1 itog= myList[0] for i in myList: itog *= i print myList print itog >>> [1, 2, 3, 4, 5, 6] 720
Response from 0[+++++]
n= 1 res= 1 for i in range 2, number+1 : __n *= i __res += n print res
n= 1 res= 1 for i in range 2, number+1 : __n *= i __res += n print res