Ad
  • Custom User Avatar

    Dude! It's the first time I've seen using lambda inside a class instead of a function!
    You managed to create the smallest and, somehow, easiest answer to analyse of us all!!!

    Sir, you got yourself a huge fan in me!

    Best practice and Clever! You got it!

  • Custom User Avatar

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

  • Custom User Avatar

    I gotta say... not satisfied with this test.
    I managed to get it done, but after many hours.
    When I ran several of valid answers, which ran on a very good time on my pc, I got the error 'no data was written to STDOUT or STDERR'.

    Also, several answers of mine were rejected because the end result was float.

    However, when I checked some of the valid answers, I very saw similar answers to mine, and answers whose end result was float.

    My python version, on my Jupyter Notebook:
    3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)]