You asked

Best portrait lens for the pentax k x?

For portraits on the K-x, I'd start with the lens and the light, not the body. The K-x's APS-C sensor gives a 1.5x crop, so a 50-85mm lens frames like a classic portrait focal length. Three good options from its catalogue:

Whichever you pick, face a window and expose for the face. That will do more than any lens. See Portraits and Lenses for more.

Written by Claude from this site's pages.

From these pages