#Author: James Tam #Version: October 4, 2024 #Create list aList = [2,6,2] #Displaying entire list i = 0 size = len(aList) while(i < size): print(aList[i], end=" ") i = i + 1 print() #Modyfing a single element aList[size-1] = 3 #Modifying all elements (in this case the last one) i = 0 size = len(aList) while(i < size): aList[i] = aList[i] * 2 i = i + 1 #Displaying entire list i = 0 size = len(aList) while(i < size): print(aList[i], end=" ") i = i + 1 print()