Reverse


#1




I was hoping that someone could break down and explain the logic behind len(start,stop,step)... I viewed a couple prior posts about this particular exercise and see that most users are incorporating the len( ) built-in function. I just can't seem to make sense of it or understand the logic. If someone could please assist it would be greatly appreciated!


Replace this line with your code.


#2

i assume you mean range? i just explained it here


#3

Thanks for the reference. I am still trying to grasp the underlying logic but I think I'm headed in the right direction.


#4

python doesn't do this really well, but if you have for example JS:

for (var i = 0; i < 5; i += 1){
   console.log(i);
}

you can clearly see the the start value, the stop value (lesser then 5) and steps of 1

python has a built in function for us to do this:

for i in range(0,5,1):
    print i

#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.