>>dict = {'M':3, 'R':0, 'S':2}
{'S': 2, 'R': 0, 'M': 3}
now if I wanted sorted values in list, i am not able to do this
None
it returns None instead of [0, 2, 3]
>>print dict
now if I wanted sorted values in list, i am not able to do this
>>print dict.values().s ort()
it returns None instead of [0, 2, 3]
Comment