I have two arrays: (arrayA contains ints and arrayB and arrayC contain strings)
arrayA = [5, 4]
arrayB = ["id_1", "id_2"] #arrayA and arrayB always have same lengths
arrayC = ['3', '4', '15', '20', '23', '8', '11', '14', '21']
I want result:
res = {"id_1": ['3', '4', '15', '20', '23'],
"id_2": ['8', '11', '14', '21']}
so basically I want to tell the program that id_1 of arrayB contains first 5 strings and id_2 of arrayB contains next 4 strings.
similarly a result from a problem like following would be:
A = [2, 1, 3, 4]
B = ["a", "b", "c", "d"]
C = ['23', '8', '11', '3', '4', '15', '20', '23', '100', '45']
res = {"a": ['23', '8'],
"b": ['11'],
"c": ['3', '4', '15'],
"d": ['20', '23', '100', '45']}