Sep-22-2019, 02:50 PM
It's not clear why these are not the results you expect, so perhaps you could give us a sample of the input file along with the expected results?
One thing that stands out is why on line 9 are you overwriting the dictionary
Also, it might help if you told us what was unintuitive about dictionaries to you. Perhaps someone could help clear that up.
One thing that stands out is why on line 9 are you overwriting the dictionary
bit_list
on each iteration of the loop? Why aren't you just adding keys with their values?Also, it might help if you told us what was unintuitive about dictionaries to you. Perhaps someone could help clear that up.