#Author:  James Tam
#Version: October 12, 2025
#Learning: Creating a new list dynamically using sucessive appends in a loop

SIZE = 5
aList = [] #Create new list
i = 0
while(i<SIZE):
    aList.append(i)
    print(aList[i],end=" ")
    i = i + 1
print()
aList = [] #Create new list
for i in range(0,SIZE,1):
    aList.append(i)
    print(aList[i],end=" ")  
