python get random key from object code example Example: python dict get random key random.choice(list(my_dict))