I've tried to solve my issue but I could not.
I have three Python lists:
atr = ['a','b','c']
m = ['h','i','j']
func = ['x','y','z']
My problem is to generate a Python dictionary based on the combination of those three lists:
The desired output:
py_dict = {
'a': [('x','h'), ('x','i'), ('x','j'), ('y','h'), ('y','i'), ('y','j'),('z','h'), ('z','i'), ('z','j')],
'b': [('x','h'), ('x','i'), ('x','j'), ('y','h'), ('y','i'), ('y','j'),('z','h'), ('z','i'), ('z','j')],
'c': [('x','h'), ('x','i'), ('x','j'), ('y','h'), ('y','i'), ('y','j'),('z','h'), ('z','i'), ('z','j')]
}