Ad
  • Custom User Avatar

    You are right. I just made some random changes to see how this "kumite" works...
    But I'm still not sure...

  • Default User Avatar

    How is a lambda function an improvement? I checked it myself - perfomance of def and lambda is almost identical. Also, one-liners do not improve readability in most cases. You made it shorter, removed choice of not preopening file. Preopening file is good for high perfomance, but it takes lots of RAM, so, sometimes it's better to keep the file closed until the moment you actually need it.

  • Default User Avatar

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