This is my first time asking a question on stack overflow myself but have been using the resources here for quite a while - thanks!
list_1 = ['a','b','c','c']
list_2 = [2,2,2,2]
I want to combine both the lists and get add values of the same keys
my_dict = dict(zip(stream_ids, times))
but whenever I combine the lists to dictionaries - value for the key gets replaced by the last one
Output: {'a': 2, 'b': 2, 'c': 2}
I want both 'c' to be added to get a 4 What I want to get is
{'a': 2, 'b': 2, 'c': 4}
Any help would be really appreciated!