random choice dictionary python

40

random.choice(list(my_dict))
entry_list = list(a_dict.items())
print(random_entry)

Comments

Submit
0 Comments