r_dict={'answer1': "value1",'answer11': "value11",'answer2': "value2",'answer3': "value3",'answer4': "value4",}
for i in r_dict:
if("answer" in i.lower()):
print i
Result is answer11,answer2,snswer4,answer3
I am using python 2.4.3 I there any way to get the order in which it is populated
Or is there a way to do this by regular expression since i am using the older python version?