You asked
Is the pentax k 500 good for beginners?
Yes, I think the K-500 is a sensible first camera. It's a DSLR with a 16.3-megapixel APS-C sensor and stabilisation built into the body, so it helps steady any lens you put on it. The Pentax K mount also has a huge range of lenses, including old manual K lenses that fit directly.
For a starter kit, I'd begin with the Pentax smc DA 18-55mm f/3.5-5.6 AL WR for everyday shooting. Add the Pentax smc DA 50mm f/1.8 once you want portraits with a softer background. If you travel and want one lens for most things, the Pentax HD DA 16-85mm f/3.5-5.6 ED DC WR covers a lot of ground.
Don't overthink the choice. For more on picking a first camera, see Your first camera, and if you're saving money, buying used is worth a look.
Written by Claude from this site's pages.