You asked
Which lens should I add to a pentax k body instead of a 50mm f 1 8?
For a Pentax K body, the answer depends on what you want the lens to do that a 50mm f/1.8 doesn't. The site's catalogue has three 50mm lenses for the K mount. The Pentax smc FA 50mm f/1.4 is the step up in speed. It's made for full-frame sensors and gives more light and softer backgrounds, so pick it if you shoot people or food in dim rooms and have a full-frame body. The Pentax smc D FA Macro 50mm f/2.8 is the choice for close-up work. It's slower at f/2.8, so it gives up low-light ability, but it's made for close-focus shooting on full frame.
If you mean a different focal length altogether, the portraits guide says an 85mm is the classic portrait lens and a 35mm suits environmental portraits and groups. The guide also recommends a fast standard prime as the first lens for low light. I can't confirm from the catalogue that a Pentax K version of an 85mm or 35mm is listed here, so check those before you buy.
The guide's budget advice applies: spend about as much on lenses as on the body. The catalogue pages above don't list prices, so the guide can't quote a figure for any of these lenses.
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}.