# Author: James Tam # Version: May 25, 2020 #Declaring variables i = -1 last = -1 aList = [] #Source: Stevie B "Because I love you" (Postman's song) aList = ["I'll","give","you","my","heart,","my","everything"] #The 'in' operator can step through an element at a time with a for-loop for aElement in aList: print("%s" %(aElement), end=" ") print("\nEncore!") #Another approach can employ a while-loop with the len() function i = 0 last = len(aList)-1 while (i <= last): print("%s" %(aList[i]), end=" ") i = i + 1