You asked
Pentax smc da 12 24mm f 4 ed al if vs pentax hd da 11 18mm f 2 8 ed dc aw?
The two lenses cover different sides of the same job. The Pentax HD DA* 11-18mm f/2.8 ED DC AW is the faster and tougher of the pair. It is weather-sealed and holds f/2.8 across its range, and on APS-C it frames like 16-27mm on full frame. Its wide end is 11mm, so it sees a little more than the other lens.
The [Pentax smc DA 12-24mm f/4 ED AL [IF]](/gear/lenses/pentax-smc-da-12-24mm-f-4-ed-al-if/) gives up a stop of light for a longer reach, to 24mm. On APS-C it frames like 18-36mm on full frame. The guide's landscape advice applies here: you will usually shoot between f/8 and f/11 for depth of field, so f/4 costs little, and f/4 zooms are lighter and cheaper than f/2.8 versions. See the landscape lens notes.
Neither lens has stabilisation, so for dim light or moving subjects the faster f/2.8 of the 11-18mm is the stronger choice. Both fit the same APS-C Pentax K bodies, including the K-3 Mark III, so the body won't decide between them. If you want the longer reach for general scenes, the 12-24mm is the more useful everyday zoom.
The guide can't give you current prices here. The lens pages do not include a price section in the material available to this answer, so check each page for its listed prices before deciding.
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}.