Ad
  • Default User Avatar

    I was having the same issue and it was driving me crazy. Using round or int, or even boolean did not work. I wrote my code all from the start. It calculates the seconds to catch up from there, goes to h:m:s. And that worked. Otherwise, it was giving me either wrong rouding up or wrong rounding down errors. Try it.

  • Default User Avatar

    @Python: So my code is passing all the 32 test conditions, when there is a 0.0000000000000001 discrepancy due to the library math difference: I implemented 1 boolean line for that. However, submission is giving this error "TypeError: range() integer end argument expected, got float.": when I make the input "n" to be an integer in the code, then it is saying "MemoryError" for a very simple 9 line code. 4 lines of the 9 lines is a boolean to return the output or to return None for non-perfectpower numbers. It also said the test is completed in 180 ms. How is the system running out of memory? Also, should not the input "n" be an integer already? The error types are not helpful in here.

  • Default User Avatar

    I am good at the required amount of 0's and all the test has passed. I tried various different numbers from my spyder, everything is pasing. But when I tried the submit I got this error:
    Testing string '.ggx\Uf^t057117\7512|+0ic>,4463tXky42y=3!.y078000'h$ [M'N,00312280005109881'
    ".ggx\Uf^t|+ic>,tXkyy=!.y'h$ [M'N,05711775120446342307800000312280005109882" should equal ".ggx\Uf^t057117\7512|+0ic>,4463tXky42y=3!.y078000'h$ [M'N,00312280005109882"
    I can see the comparison is False, and therefore it is erroring: but what is this error code? It is either not noted anywhere or I could not find it.

    Later, I tried submitting my solution again w/o changing the code, and the error changed in every attempt. Here is the last error:
    Testing string '$w224220000009809'
    Test Passed
    "XJv-'t:&uq(UCkS|]\5271923150582570000000009" should equal "XJ5v-'t:&uq(U27192C3kS|]\150582570000000009"

  • Default User Avatar
  • Default User Avatar