Dec-05-2022, 07:50 PM
Good day,
I have searched and read and tried options for days... I know it must be simple, yet here I am.
I am creating a list from two user input lists; list_a is a set of tasks that may change from day to day in number and name; and list_b, a set of people who may change from day to day in number. I need list_c (or more) to be an equal distribution of list_b elements to each list_a element. I have the first part, entering the data, saving it, retrieving if needed (they may be the same for a few days). I've dealt with out of range, randomizing, iteration, slicing and splicing, no duplicates, etc. But for some reason, because the lists are user imputed, and not always the same elements, and especially the same number of elements, I just can't seem to find a way to join them properly.
Example
Task list: a, b, c
People list: John, Joe, Karen, Billy, Bob, Lisa, Derek
Desired Output: a: John, Billy, Derek
b: Joe, Bob
c: Karen, Lisa
I'm a noob, I feel like I have exhausted my ability to ask search engines the question in a different way and I've read so many posts my brain hurts...
Any help would be appreciated.
DeatZ
I have searched and read and tried options for days... I know it must be simple, yet here I am.
I am creating a list from two user input lists; list_a is a set of tasks that may change from day to day in number and name; and list_b, a set of people who may change from day to day in number. I need list_c (or more) to be an equal distribution of list_b elements to each list_a element. I have the first part, entering the data, saving it, retrieving if needed (they may be the same for a few days). I've dealt with out of range, randomizing, iteration, slicing and splicing, no duplicates, etc. But for some reason, because the lists are user imputed, and not always the same elements, and especially the same number of elements, I just can't seem to find a way to join them properly.
Example
Task list: a, b, c
People list: John, Joe, Karen, Billy, Bob, Lisa, Derek
Desired Output: a: John, Billy, Derek
b: Joe, Bob
c: Karen, Lisa
I'm a noob, I feel like I have exhausted my ability to ask search engines the question in a different way and I've read so many posts my brain hurts...
Any help would be appreciated.
DeatZ