You asked

Which lens would suit portraits on a k 3 better than a 35mm?

The guide doesn't have a page for the K-3, so it can't say which Pentax lenses that body takes or check their prices. What it can say is which focal lengths beat a 35mm for portraits. The portraits page favours longer lenses because standing further away keeps faces in proportion, and it recommends three alternatives:

The 35mm is still useful for environmental portraits that show where someone is, and for groups, so it's worth keeping if you already own one. The guide's first lenses advice is a fast standard prime, typically a 50mm f/1.8 on full frame or 33-35mm on APS-C, so the 50mm is the natural first purchase.

Before buying, check that a lens fits your camera's mount. The guide's Pentax K page lists the lenses it covers. Also check whether your K-3 is an APS-C body, since that decides which focal length you'll get. The first camera page suggests spending about as much on lenses as on the body.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.