Ad
  • Default User Avatar

    Hey @PDrich101 - I spent some time trying your solution; there is some weird behaviour and I think it seems to be with your use of NumPy; I noticed for some tests your code was producing complex numbers.

    I reset the trainer and tried to repaste your old solution but you have since updated so I can't continue testing.

    My advice therefore would be: replace all your calculations with inbuilt Python types rather than Numpy ones. Note by the way that there is a prod function in math - you can from math import prod you don't need the Numpy one.

  • Custom User Avatar

    If testing throws an error, you did not pass every test.

    Not a kata issue. Closing.

  • Custom User Avatar

    That seems a problem with your code returning None for some input.

  • Custom User Avatar

    Eh .. it's a cheat, actually.