I don't have much experience in python coding, and i wondered if anyone on this forum could help me out with this problem.
i need a function p(H) for calculation of pH; y = p(H) =-log (H).
The function can also be used for pOH, pKa, etc.
Use the function in a program that asks for the Ka-value for an acid, and then calculates
pKa, pKb for the corresponding base, and pH and pOH of a 1 M solution of acid and a
buffer consisting of acid and base in equal amounts.
Would be nice to keep the code as simple and short as possible.