You asked

Is the pentax hd da 21mm f 3 2 al limited good for landscape?

The Pentax HD DA 21mm f/3.2 AL Limited is not the best main lens for landscapes. On an APS-C Pentax K body it frames like 32mm on full frame, which is a standard-to-short-telephoto view. The landscape guide recommends a wide zoom, around 10-24mm on APS-C, for big skies and strong foregrounds.

The lens still has some strengths. Landscapes are usually shot between f/8 and f/11, so the f/3.2 maximum aperture matters little, and you won't miss the extra speed. It's a small, light prime, which suits hiking. It fits many Pentax K bodies, and on the K-1 or K-1 Mark II it works in APS-C crop mode, giving fewer megapixels but the same 32mm-equivalent framing. It isn't stabilised, but that hardly matters on a tripod, which most landscape work uses.

It works best as a second lens for landscapes, for isolating a single tree, a building, or a distant ridge. For wider views on APS-C, the Pentax HD DA 15mm f/4 ED AL Limited is the closer match, since it is wider and also made for APS-C. Check its page for the details.

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