You asked

Best first lens for the leica m10 p under 300 euros?

For a first lens on the Leica M10-P, the guide's advice is a fast standard prime, around 50mm on full frame, for people, food and low light. The M10-P's camera page lists several 50mm lenses, and three suit a first lens:

The guide's pages don't give prices for these lenses, so it can't confirm which fit under 300 euros. Check each lens page's price section, since prices change. The guide's reasoning favours the TTArtisan for a first lens under a tight budget, because its speed matters most in low light. The Leica suits a buyer who wants the Leica look and is willing to spend more.

The M10-P has no in-body stabilisation, so for slow shutter speeds in dim light, a fast lens matters more than any steadying feature.

Once you have the prime, the guide's first lenses advice suggests adding a wider or longer lens for what you shoot.

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