how to define the value of an index in python code example Example: python dictionary get element by index value_at_index = dic.values()[index]