I have a specific kind of array which looks often like this: and I want to convert it to something like Ca3(PO4)2. Could someone help me? I tried a lot of techniques, but the code gets always really messy. I do not know what am i doing wrong. I use python by the way. P.S.: if anything’s wrong, tell me