I have a dictionary:
{'three': 3, 'two': 2, 'one': 1}
and I need to make some operations with tuple of keys from this dictionary, so I'm trying to use this code:
list(D.keys()) # now I need to sort it
list(D.keys()).sort() # why such construction returns None? (Use print() to track it)
I'm using VS 2013 and IntelliSense prompts me sort method when I print list(D.keys()).
So what I'm missing?
p.s Such construction works well:
L = list(D.keys())
L.sort()
Thank You!
.sort() # why such construction returns None?because read the documentation?