# example code: menu where user must type exact name
#        option name        max. score
all_options = {  
                                       # upper section:
           "Ones":            5,
           "Twos":            10,
           "Threes":          15,
           "Fours":           20,
           "Fives":           25,
           "Sixes":           30,
                                        # lower section
           "Three Of A Kind": 30,
           "Four Of A Kind":  30,
           "Full House":      25,
           "Small Straight":  30,
           "Large Straight":  40,
           "Yahtzee":         50,
           "Chance":          30,
           }
# display the menu
print("please choose one option of those:")
print("name             max. points")
for name, maximum_points in all_options.items(): # ➊
    print(f"{name:<15}  {maximum_points:>2}")    # ➋
# validate input
while True:                                      # ➌ 
    command = input("Write the name of option: >>>")
    if command in all_options:
        option = command
        break                                    # ➍
    print("strange input. Please try again.")
# user made a valid choice
print("you choose to play", option )             # ➎