Ad
  • Custom User Avatar

    man I gotta say...super beautiful thinking. Amazing answer and amazing solution.
    I did the same calculus, but you put it so, so beautifully in code. So clean.
    All the respect man.

  • Custom User Avatar

    I checked it and indeed it was wrong. I corrected the part where I should not let the rank become 0 or ever greater than 8. My code now passes all the tests when I "test" it, but when I attempt it, 1/3 of the tests always fail. I tried to debug it in my vsCode with any possible kind of values and I didn't come up with any mistake now. Do you have any advice? Is still anything wrong with my code? Or it's just the tests now who behave wrongly? If there's any mistake in my code, I would really appreciate a hint about it.

  • Custom User Avatar

    I am sorry, it's the first time I am writing on this website, but "messed up behaviour"? Take it easier, man :)). Just didn't know about what you just said. I tried everything, also saw A LOT of "issue" messages posted on this problem, so thought it really is an issue. Never saw so many comments labeled as "issue" before this one. I will surely follow your advice from now on, but still - can't see any problem with my code at all, and it still fails (like many on this page), and I stared at my code for a very long time. PS even tried chatGPT to see if I miss something, and guess. It doesn't spot any errors in my code. (Provided the assignment and my code). So yea, maybe this kata should use engineering? If not, I am sorry. I will, though, take this problem and the test-cases and try to debug it in my VSCode.

  • Custom User Avatar

    I am passing all 503 test cases, but still I get this error message on the front page:
    TypeError: User.inc_progress() takes 1 positional argument but 2 were given

    This is related strictly to the test cases that were written by the author. I tried to understand what the heck it means...but I can't figure it out why exactly is that error appearing, because inc_progress DOES take only one positional argument anyway...

    Anyone else bumping into the same issue?

  • Custom User Avatar

    I think some people here are trying to solve the problems without the (in this case) given string methods. They probably just wanna stimulate their minds.