Ad
  • Custom User Avatar
  • Custom User Avatar

    The math module is not disabled, it's just that gcd() was added to the math module in Python 3.5 and the current Kata version is 3.4.3. You should import gcd() from the fractions module instead.

    From the Python 3.5 Notes

    A new gcd() function has been added. The fractions.gcd() function is now deprecated. (Contributed by Mark Dickinson and Serhiy Storchaka in issue 22486.)

  • Custom User Avatar

    Please which language?
    Why do you need a math module?

  • Custom User Avatar

    check thre link all the way down in the description, I doese't exactally samy that some of the values that are in the spectrum should be postite or negative but you can figure it out, it is not wrong that some of the negative values expect a positve output. it is in the algorythm and you also get to read some pseudo code which is very very helpful to passing this kata