You asked

Is the pentax k 5 ii good for beginners?

The K-5 II is a capable APS-C DSLR with a 16.3-megapixel sensor and stabilisation built into the body, so every lens you attach gets steadier. It's an older body from 2012, though, and I don't have a specific beginner verdict on it. Size and handling matter more than specs for a first camera, so hold one if you can. The first camera guide explains why.

If you go ahead, these make a sensible starter set:

Buying used can save real money on a body like this. See buying used.

Written by Claude from this site's pages.

From these pages