You asked

Pentax k x vs pentax k r?

The two cameras are close to identical on paper. Both are Pentax DSLRs with a 12.4-megapixel APS-C sensor, in-body stabilisation and the Pentax K mount, and both offer the same lens list. The Pentax K-x was announced in 2009 and runs on four AA batteries. The Pentax K-r followed in 2010. The guide's pages don't list other differences, so it can't say which handles better or which suits your shooting.

Because the K-x and K-r share a sensor and lens range, the choice comes down to what you can find used at a good price and whether you want the newer body. Either way, the lens matters more than the body. For a general everyday kit, the guide suggests:

Whichever body you pick, start with the standard zoom and add the 50mm when you find you want more light or softer backgrounds. For a sense of how these focal lengths frame on this sensor, see the sensor sizes page.

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