how to make a directory a dictionary number wise in python code example Example: python dictionary get element by index value_at_index = dic.values()[index]