伪代码不懂行

Pseudocode Not Understand Line

我只是对第 11 行感到困惑如何将其编码为 python:

这条线是( FOR N <-- 1 TO Factor

while loop:

n = 1
while n <= (Factor+1):
    # block of code
    n = n + 1

或如@Thierry Lathuille 所说,for-loop:

for n in range(1, Factor + 1):
    # block of code