First, don't spoon feed solutions to OPs. Second, perhaps the OP wanted to figure out how to do it without using a reverse().
Regards,
Jim
Type: Posts; User: jim829
First, don't spoon feed solutions to OPs. Second, perhaps the OP wanted to figure out how to do it without using a reverse().
Regards,
Jim
I recommend you put in a print statement in your loop to print out the values of n, rev, and a to see what is happening.
Regards,
Jim