generate random dictionary key in python code example Example: how to choose a random key from a dictionary in python print(a_dict)