Nov-21-2018, 07:02 AM
I think one only needs to replace line 4 with
x = list(range(N+1))If you want to go further, you need to analyse the python code to understand how it works.