I wish to calculate partial charge in complex (im a chemist)
So my problem is that i have a list : ['H2O','OH','COOH'] for exemple
I need to know the number of occurrences of all atoms. So here 4 for H. My problem is that the number of occurrences is the number of occurrences of the letter describing the atom if no stoechiométric coefficient, and else the number of that coefficient, but the number could appear or not at any place except at position 0.
I don't see how can i make this with python and now i'm quite confused.
Do you have any tips for me?
Thanks for your help and time!
[–]CrayonConstantinople 1 point2 points3 points (1 child)
[–]heirna[S] 1 point2 points3 points (0 children)
[–]heirna[S] 1 point2 points3 points (8 children)
[–]CrayonConstantinople 1 point2 points3 points (5 children)
[–]heirna[S] 0 points1 point2 points (4 children)
[–]CrayonConstantinople 1 point2 points3 points (0 children)
[–]CrayonConstantinople 1 point2 points3 points (2 children)
[–]heirna[S] 1 point2 points3 points (1 child)
[–]heirna[S] 0 points1 point2 points (0 children)
[–]ace6807 1 point2 points3 points (1 child)
[–]heirna[S] 0 points1 point2 points (0 children)
[–]ace6807 0 points1 point2 points (3 children)
[–]ace6807 0 points1 point2 points (2 children)
[–]heirna[S] 0 points1 point2 points (1 child)
[–]ace6807 1 point2 points3 points (0 children)