Ad
  • Default User Avatar

    I think Python just has a special function for it, most other languages probably require you to make an algorithm to figure it out.

  • Default User Avatar

    Can there be a Python version of this kata? Seems simple enough to make, just create a class and define some functions.

  • Default User Avatar

    I mean the point isn't to change i, its to create a function that returns double the value of i. Whether you're changing i itself or just returning i * 2, its the same thing.

  • Default User Avatar

    If you haven't solved it yet, you don't need to learn much for this. It's just about creating a good algorithm

  • Default User Avatar

    No, it should be 4. At least, thats what my calculations point to. There's a particular way the rounding has to work, don't overthink the "tortoises don't care about fractions of a second part"