Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Filter list respecting seniority & no more than 3 same number
Post: RE: Filter list respecting seniority & no more tha...

Ok, i went to deep xD weeks = list(range(1, 52)) tracking = {week_num: 0 for week_num in weeks} assignments = [ ] for preferences in [[1, 2, 3, 4, 5], [1, 2, 3, 4, 5], [1, 2, 3, 4], [1, 2, 3, 4], [1,...
Azerate General Coding Help 18 8,895 Sep-01-2017, 08:07 PM
    Thread: Filter list respecting seniority & no more than 3 same number
Post: RE: Filter list respecting seniority & no more tha...

I get the following error from the code below Traceback (most recent call last): File "C:/Users/h.villeneuve/PycharmProjects/OrderedDict/OrderedDict.py", line 29, in <module> if tracking[...
Azerate General Coding Help 18 8,895 Sep-01-2017, 07:03 PM
    Thread: Filter list respecting seniority & no more than 3 same number
Post: RE: Filter list respecting seniority & no more tha...

Thank Larzi, I feel we are so close. Do you have any idea why it's only printing: "assignments: []" i Believe i probably changed something in the code that i shouldn't have but i can't figure it out ....
Azerate General Coding Help 18 8,895 Sep-01-2017, 05:13 PM
    Thread: Filter list respecting seniority & no more than 3 same number
Post: RE: Filter list respecting seniority & no more tha...

Alright ! so a little update :) I believe i managed to understand most of the content of the code you wrote & tweaking it best i can with the limited knowledge i got in python **shifty** I am ...
Azerate General Coding Help 18 8,895 Sep-01-2017, 04:28 PM
    Thread: Filter list respecting seniority & no more than 3 same number
Post: RE: Filter list respecting seniority & no more tha...

Thank for those clarifications, i was not sure of the reference in the code you wrote, i will definitely go read and practice this "Classes" tutorial on your signature. For now, i will spend the nex...
Azerate General Coding Help 18 8,895 Aug-31-2017, 08:13 PM
    Thread: Filter list respecting seniority & no more than 3 same number
Post: RE: Filter list respecting seniority & no more tha...

Wow, i would have never been able to accomplish such a thing, you are a genius, i will play around with it to make sure i understand all the aspect of it. Much respect man. So the "assignments =" ...
Azerate General Coding Help 18 8,895 Aug-31-2017, 07:17 PM
    Thread: Filter list respecting seniority & no more than 3 same number
Post: RE: Filter list respecting seniority & no more tha...

from collections import OrderedDict WeekPool = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39, 40,41,42,43,44,45,46,47,48,49,5...
Azerate General Coding Help 18 8,895 Aug-31-2017, 06:00 PM
    Thread: Filter list respecting seniority & no more than 3 same number
Post: RE: Filter list respecting seniority & no more tha...

Would from multiprocessing import Process, Queue be an option (im not quite sure what id actually do, im still testing it as i write those line ) where: Process = 1,2,3,4,5,6 Queue = Chosen number ...
Azerate General Coding Help 18 8,895 Aug-31-2017, 04:21 PM
    Thread: Filter list respecting seniority & no more than 3 same number
Post: Filter list respecting seniority & no more than 3 ...

General idea: Number are 1 to 6 Each Person chooses 5 number. Seniority is 1 the oldest & 5 the newest If number repeat after 3 times, select next available from the chosen numbers Person 1 chos...
Azerate General Coding Help 18 8,895 Aug-30-2017, 09:18 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020