Mar-25-2022, 01:42 AM
Hello
I have this dictionary:
I have this dictionary:
{('i', 'i'): (0.4958635668040591+0.033985852749267645j), ('i', 'x'): (-3.713537562982453e-06-2.578284945296621e-07j), ('i', 'y'): (-2.078134606106431e-06-1.5092272785217425e-07j), ('i', 'z'): (0.0030247632238068057+0.00019935846367565656j), ('x', 'i'): (-0.000497513570319244-5.014558284085448e-05j), ('x', 'x'): (3.4616869917723378e-09+2.9221799051462875e-10j), ('x', 'y'): (1.9383437449053815e-09+1.5103701730941268e-10j), ('x', 'z'): (-0.006595795711769758-0.00046843232709893433j), ('y', 'i'): (-0.48228842229892616-0.03305438712887293j), ('y', 'x'): (3.6119889496561947e-06+2.5261831345886037e-07j), ('y', 'y'): (2.021496707024936e-06+1.449570267430537e-07j), ('y', 'z'): (-0.0029419875232505823-0.00019382466419900108j), ('z', 'i'): (-3.1576270223704965e-06-5.4375273822120716e-08j), ('z', 'x'): (5.0875697722712674e-12+1.9453039138714473e-12j), ('z', 'y'): (4.816868975153029e-13-1.8167517982790014e-12j), ('z', 'z'): (-0.0004005193083767186-2.7382736070473568e-05j), "('i', 'i')i": (0.4928883854032347+0.03378193763277204j), "('i', 'x')i": (-3.6912563376045584e-06-2.562815235624841e-07j)}I want to update the key values and I want to add 'i' at the end of the key values like that:
{('i', 'i','i'): (0.4958635668040591+0.033985852749267645j), ('i', 'x', 'i'): (-3.713537562982453e-06-2.578284945296621e-07j), ('i', 'y','i'): (-2.078134606106431e-06-1.5092272785217425e-07j), etc...How to do that?