
# names_list = [names]
# for i in names_list:
#     print(f"Adding {i} to the list")
#     names_list.append(1)


# names = input("What is your name?: ")
# my_list = ["Vik"]
# for names in my_list:
#     print(names)
#     length = len(names)
#     print(length)

#     if length > 10:
#         print("Name is too long. Use short name.")

names = input("What is your name?: ")
mylist = []
mylist.append(names)
mylist = 0
# if mylist <= 9
#         names = input("What is your name?: ")
# else:
#      print("End of program")   
while (mylist <= 9):
        names = input("What is your name?: ")
        mylist = []
        mylist.append(names)
        mylist = mylist + 1
        print (f"print my list {mylist}")
        #print (len(mylist))
else:
        print("End of program")

#-----
# names = input("What is your name?: ")
# mylist = []
# mylist.append(names)
# print (f"print my list {mylist}")
# print (len(mylist))
# names = input("What is your name?: ")

#-------
#mylist = mylist + []

# for name in my_list:
#     print(name)
#     length = len(name)
#     print(length)

#     if length > 10:
#         print("Name is too long. Use short name.")