Feb-22-2018, 10:56 AM
I having problem with this part of my code.
I been trying to do so choice_4 : Choice_5 so the choice4 is the key while choice 5 is the value/des inside of the key.
but everything I tryed have failed.
i want so dictinary_TV[choice_1][choice_2].update({dict_key_maker}) will have the new key and the value.
But just can't find out how to do it.
Anyone who have tips?
I been trying to do so choice_4 : Choice_5 so the choice4 is the key while choice 5 is the value/des inside of the key.
but everything I tryed have failed.
i want so dictinary_TV[choice_1][choice_2].update({dict_key_maker}) will have the new key and the value.
But just can't find out how to do it.
Anyone who have tips?
choice_1 = input("Option: Anime, TV Show, Save or Quit: ").capitalize() if choice_1 in dictinary_TV.keys(): choice_2 = input("What genre you wanna go do?: ").capitalize() if choice_2 in dictinary_TV["Anime"].keys(): choice_3 = input("Option: Add or View: ").capitalize() if choice_3 == "Add": choice_4 = input("Write name of the show: ") choice_5 = input("description of the show: ") dict_key_maker: dictinary_TV[choice_1][choice_2].update({dict_key_maker})