I am trying to develop a code and half of it is done, I am grouping my diction but now it makes some trouble. I want to create my function but I used itertools, if there is