Could anyone help me out with the dict in python ?
I made a dict with a print statement which is as following :
role = {
'user': 1,
'moderator': 2,
'admin': 3
}
for r in role:
print role[r]
I thought the result would be
1
2
3
but it actually printed out
2
3
1
Can anyone tell me why?