#Author:  James Tam
#Version: October 4, 2024

#Create list
aList = ["A","a","z","B"]


#Add 3 elements to end based on user input
i = 1
while(i<=3):
    ch = input("Type in a single character: ")
    aList.append(ch)
    i = i + 1

#Displaying entire list
i = 0
size = len(aList)
print("Original list")
while(i < size):
    print(aList[i])
    i = i + 1

#Modifying all upper case alpha (
i = 0
size = len(aList)
while(i < size):
    #One can also utilize string methods to check for case.
    #you can also use string methods such as upper()
    if((aList[i]>="A") and (aList[i]<="Z")):
        aList[i] = aList[i] + "!" #Plus sign (concatenate/connect strings)
    i = i + 1

#Displaying entire list
i = 0
size = len(aList)
print("Displaying modified list")
while(i < size):
    print(aList[i])
    i = i + 1
