Is the Python implementation correct? Does the variable i run from 1 to length or from length to 1? --AxelBoldt |
Is the Python implementation correct? Does the variable i run from 1 to length or from length to 1? --AxelBoldt Python range(n) gives a list [0, 1, 2, ... n-1]. The Python for statement then iterates over these values. Python arrays are indexed from 0 upwards. -- The Anome |