how to get access of elements of a dictionary base on its index. for example i have this dictionary with name 'a' :
a={'ali':10 , 'reza':19 , 'sara':15}
is there any way to get access of first or second or third value of dictionary directly? i mean, i dont want to use these below codes.
a['ali'] or a['reza'] or a['sara']
i want to get first/second/third value of above dict directly. despite i know this is wrong but assume for example i use this code and get access of values by its index :
a[0] ====> 10 or a[1] ====> 19
please help me to solve this problem.