Ad
  • Custom User Avatar

    There is a rule, "simple is better than complex".
    It's due to is more simple do code inside of def function
    rather than do a lambda function.

    But it's definetly very clever solution :)

  • Default User Avatar

    it's classic oneliner.
    def is ugly, lambda is beautiful in oneliner

    zen of python, 1st line:
    Beautiful is better than ugly.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution