You asked
Is a used pentax k mount lens a sensible buy for my pentax k x?
A used Pentax K-mount lens is a sensible buy for the K-x. The site's advice for a first camera is to buy used to save money, and the K-x takes the Pentax K mount, so older and used glass fits. Try a lens in a shop if you can, and check it feels right on the body.
The K-x's lens list is long, so you can match a lens to what you shoot. For a general kit, the Pentax smc DA 50mm f/1.8 is a cheap, bright lens for portraits and dim rooms. It's 75mm on full frame terms, so it's a short telephoto on this camera. The Pentax smc DA 35mm f/2.4 AL is small and light, and works as an everyday walkaround lens. If you want one zoom for travel, the Pentax HD DA 16-85mm f/3.5-5.6 ED DC WR covers wide to portrait and is weather-sealed, but its maximum aperture is slower, so it's weaker in dim light.
The K-x page doesn't list prices, and this site can't tell you whether a used price is good, so check each lens's page for its price in France and the shops' links before buying. The buying used page covers how to judge a second-hand lens.
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}.