“cmd.angle” shows the angle formed between any three atoms.
cmd.angle(string name, string selection1, string selection2, string selection3)
def angle(name=None, selection1="(pk1)", selection2="(pk2)", selection3="(pk3)", mode=None, label=1, reset=0, zoom=0, state=0, quiet=1):