Ad
  • Custom User Avatar

    Exactly, that was my point. This kumite needs new test inputs

  • Custom User Avatar

    Correct, this will return False if it is odd and True if it is even. I've seen some more complex mathematical methods to detect if it's a power of two with just simple arithmetic but what would probably be easiest is to import Math and do return False if math.log(n, 2)%1 else True