def main():
    names = []
    moredata = "yes"
    input (" Do you want to perform a list operation?")
    while moredata[0].lower() == 'y':
        ask = input (" Do you want to test, peek, add, or remove?")
        if ask == "test":
            if names:
                print("The list is not empty")
            else:
                print("The list is empty")
        elif ask == "peek":
            def __str__(self):
                return self.names[0]
        elif ask == "add":
                x = input("What student name do you want to add?")
                names.append(x)
        elif ask == "remove":
            x = names.pop(0)
            print("Removed Number From List= ", x)
            print( "list =", names )
        moredata = input("Do you want to do more operations(yes or no)? ")
            
            
def printList():
    list1 = input("Insert a list")
    lists = [list1]
    print (lists)
    
