choose random number of keys from dictionary python code example Example: python dict get random key random.choice(list(my_dict))