Home > Back-end >  Python's a job, don't know where have problem, this Zhang Xue is building function and the
Python's a job, don't know where have problem, this Zhang Xue is building function and the

Time:04-15

CodePudding user response:

So to call, but you have a loop variable control problem
 
# - * - coding: utf-8 - * -
The import math
N=10
Sum=0
For I in range (1, n + 1) :
The sum +=math.h factorial (I)
Print the sum

CodePudding user response:

python range (a, b) from a to b - 1