mylist = ['clean the keyboard', 'meet tom', 'throw the trash'] for index, item in enumerate(mylist): row = f"{index + 1}. {item.title()}" # Apply title to the item here print(row) print(len(row))