python get dictionary index by value code example Example: python dictionary get element by index value_at_index = dic.values()[index]