how to print the weight multiplicites in a column
I work with
D2=WeylCharacterRing("D2")
and I am interested in
D2(1,0).weight_multiplicities()
{(0, 1): 1, (1, 0): 1, (-1, 0): 1, (0, -1): 1}
I would like to have this result in a column. I tried as follows:
for a in D2(1,0).weight_multiplicities(): print a
(0, 1)
(1, 0)
(-1, 0)
(0, -1)
But now, I didn't have the multiplicities (the number after ":"). I would like to obtain
(0, 1): 1
(1, 0): 1
(-1, 0): 1
(0, -1):1
How can I do? Thanks.-.