You asked
Pentax k 30 vs pentax k 5?
The K-30 and K-5 are very close on paper. Both have a 16.3-megapixel APS-C sensor, in-body stabilisation and the Pentax K mount, and both take the same lenses. The main difference is age: the K-5 was announced in 2010 and the K-30 in 2012, so the K-30 is the newer body. Check the Pentax K-5 and Pentax K-30 pages for the full details.
Since the choice comes down to the lens, a sensible everyday kit for either body would be the Pentax smc DA 18-55mm f/3.5-5.6 AL WR for general use, the Pentax smc DA 50mm f/1.8 for portraits in dim light, and the Sigma 18-35mm f/1.8 DC HSM Art if you want a fast zoom. For how focal length and aperture affect your shots, see the lenses guide.
Written by Claude from this site's pages.