You asked

Best first lens for the pentax k r under 300 euros?

The K-r is an APS-C camera with in-body stabilisation, so it steadies the shot but won't freeze a moving subject or help much in dim light. For that, a fast lens matters more. The guide's advice for a first kit is a standard zoom plus a fast standard prime, roughly 33-35mm on APS-C (lenses).

Three K-r lenses fit that plan:

I can't confirm which of these fit 300 euros. This answer has no price data, so check each lens page's "Price in France" section for the price, the date it was checked and the shop links, and remember prices change. A sensible pairing is the 18-55mm zoom with the 35mm or 50mm prime, which covers the widest range for the least money.

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}.