Ad
  • Custom User Avatar

    I thought about initializing both ints concurrently, but I think it's probably more proper, semantically, to keep the index scoped to the loop. Your count and loop index can both be initialized to two, since all integers have at least two divisors, but just minor nitpicking!

  • Custom User Avatar

    OOOH thank you for taking the time to explain this to me! I was reading it wrong... Now I see where I'm mistaken!

  • Default User Avatar

    You have a problem somewhere:
    Test3:

      input a = [[2, 7], [1, 3], [1, 12]]
      èxpected output b = [[24, 84], [28, 84], [7, 84]]
    

    [[10, 36], [12, 36], [3, 36]] is your output which is wrong. It is not the input.

  • Default User Avatar

    It is the 3rd test result:
    '[[10, 36], [12, 36], [3, 36]] should equal [[24, 84], [28, 84], [7, 84]]'

  • Default User Avatar

    Which test? By the way look at the top of the page and see how many people passed the Python kata. Cheers.

  • Custom User Avatar

    In Python one of the tests gives a wrong answer.
    It says 10/36 should give 24/84 which is not the same.
    My answer finds 15/54 but the test won't accept it.
    Could someone check on the tests ?