import random

history = []                                      
   
for game_round in range(1,14):                    # ➊ 
    dicelist = []                                     
    for _ in range(5):    
        dicelist.append(random.randint(1,6))  
    print(f"-------- round {game_round} of 13--------------")  # ➋
    for throw in (1,2,3):                         # ➌
        text= "throw: {} of 3".format(throw)      # ➍
        print(text)
        print(" a  b  c  d  e")
        print(dicelist)
        if throw < 3:
            text = "Type letter(s) of dice to keep and press ENTER "
            command = input(text).lower()              # ➎
            for i, char in enumerate("abcde") :        # ➏ 
                if char not in command:                
                    dicelist[i] = random.randint(1,6)  # ➐ 

        
    print(f"------- end of round {game_round}------")
    if game_round == 13:                       # ➑
        text = "press ENTER to see the history of dice throws"
    else:
        text = "press ENTER to start the next game round"
    input(text)                           # ➒  
    history.append(dicelist.copy())       # ➓
print("Game Over")  
print("--- history of your dice throws: ---")
print("game round,  result")
for game_round, result in enumerate(history, 1):  # ⓫ 
    print(f"{game_round:>5} : {result}" )         # ⓬