You asked

Is the pentax k 500 good in low light?

Here is what the site says about that.

From Pentax K-500: Pentax K-500: A DSLR by Pentax with a 16.3-megapixel APS-C sensor, announced in 2013. The K-50 without weather sealing. Specs - Maker: Pentax - Mount: Pentax K - Sensor: APS-C, 23.5 x 15.6mm, crop factor 1.5 - Resolution: 16.3 megapixels - Stabilisation: in the body - Announced: 2013 - Type: DSLR Focal lengths on it Lenses frame like 1.5 times their focal length on full frame: 16mm like 24mm, 23mm like 35mm, ...

From Sensor sizes: Is full frame worth it?: For low light, events, and portraits with very shallow depth of field, yes. For travel, street, wildlife on a budget, and most hobby photography, a good APS-C camera with good lenses is enough, and you'll carry it more. Lenses and light matter more than the last stop of sensor performance.

Quoted from this site's pages.

From these pages