I am trying to get my program to print out \"banana\" from the dictionary. What would be the simplest way to do this?
\"banana\"
This is my dictionary:
easiest way is:
first_key = my_dict.keys()[0]
but some times you should be more careful and assure that your entity is a valuable list so:
first_key = list(my_dict.keys())[0]