python get random dict key code example
Example 1: python dict get random key
random.choice(list(my_dict))
Example 2: how to choose a random key from a dictionary in python
print(a_dict)
random.choice(list(my_dict))
print(a_dict)