You asked

Is the pentax smc da 12 24mm f 4 ed al if good for landscape?

Yes, the [Pentax smc DA 12-24mm f/4 ED AL [IF]](/gear/lenses/pentax-smc-da-12-24mm-f-4-ed-al-if/) suits landscape work. The guide's landscape page calls a wide zoom the classic landscape lens for big skies and strong foregrounds, and it says f/4 zooms are a great choice because you'll usually shoot between f/8 and f/11 anyway. This lens is made for APS-C, where it frames like 18-36mm on full frame. That is wide enough for most landscapes, though not an ultra-wide. It isn't stabilised, which matters little when you work from a tripod.

The guide's picks from the cameras this lens fits:

The lens covers the wide end, but the guide also rates a telephoto zoom for picking out layers of hills or light on a distant ridge. Its prices aren't listed on the site here, so check the catalogue pages for current figures, since prices change.

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