Re: [Tutor] enumerate over Dictionaries

2019-07-05 Thread Animesh Bhadra
Thanks Alan and Mats for the explanation. On 05/07/19 19:57, Mats Wichmann wrote: On 7/4/19 3:53 PM, Alan Gauld via Tutor wrote: Does this means that the Dict is ordered? or it is implementation dependent? Neither, it means the items in a list always have indexes starting at zero. By pure co

Re: [Tutor] enumerate over Dictionaries

2019-07-05 Thread Mats Wichmann
On 7/4/19 3:53 PM, Alan Gauld via Tutor wrote: >> Does this means that the Dict is ordered? or it is implementation dependent? > > Neither, it means the items in a list always have indexes > starting at zero. > > By pure coincidence dictionaries in recent Python versions (since 3.6 > or 3.7???)

Re: [Tutor] Regarding help in python algorithm

2019-07-05 Thread Alan Gauld via Tutor
On 05/07/2019 07:25, Suhit Kumar wrote: > I am a student at an university. Currently I was working on an algorithm > using python. It is based on scheduling the teachers to their nearest > venues. And at the venues there can be atmost 400 teachers and these are to > be divided into the Batches of

[Tutor] Regarding help in python algorithm

2019-07-05 Thread Suhit Kumar
Hi, I am a student at an university. Currently I was working on an algorithm using python. It is based on scheduling the teachers to their nearest venues. And at the venues there can be atmost 400 teachers and these are to be divided into the Batches of 40 i.e. ten batches. All the batches will hav