Ad
  • Custom User Avatar

    Even though there is some redundancy here, is this solution a better example of Python's "explicit over implicit", "Sparse is better than dense", and "Readability counts". I am not a regular Python coder, and I find this solution to be more readable at a glance than the one-liner. Is the one-liner more idiomatic and therefore more readable once you become more familar with Python?