Nov-04-2019, 11:36 PM
Hi I'm still confuse by this code. In the for loop where, i=3, aList[3] = aList[3+1], is 4 temporarily replacing 3? I'm confuse by this "place holder" substitution. How does this code relate to switching the elements order in this list?
Is aList[3+1] = temp saying 4 is now the temporary value? What does this code actually do; aList=[i+1] = temp?
Is aList[3+1] = temp saying 4 is now the temporary value? What does this code actually do; aList=[i+1] = temp?