2 of 5 The programmer in me really want to refactor the title by removing the duplicated bits

If both radio waves and gamma rays can travel through walls…

and they are on opposite ends of the electromagnetic spectrum, then why can't light travel through walls which is right in the middle of the spectrum?

This question has already been asked here. However, I am not entirely satisfied by the answer. I am not looking for fanciful analogies and metaphors. I just want to know factual technical reasons why this happens. If given a radio source and a gamma source of equal intensity, then will the radio source have more penetrability than the gamma source per formula for penetration depth? If not, why not?