How to fill in a dictionary with key and value from a string?

Mark Lawrence breamoreboy at gmail.com
Sun Apr 1 23:06:14 EDT 2018


On 02/04/18 03:24, C W wrote:
> Thank you Steven. I am frustrated that I can't enumerate a dictionary by
> position index.
> 
> Maybe I want to shift by 2 positions, 5 positions...
> 
> I want to know/learn how to manipulate dictionary with loop and by its
> position location.
> 

Frankly I think you'd be much better off just using a list or a deque, 
although a SortedListWithKey 
http://www.grantjenks.com/docs/sortedcontainers/sortedlistwithkey.html 
is available if you really need it, although I'll admit to being very 
dubious about that.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list