We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
It shows error if you made changes in lines where you not supposed to change anything. Even if you move all as it is, the error still be there. Reset the code, and change only 5 lines that have a mistake helps me to submit. Just in case someone else would have the same issue.
This happened to me too. It's dumb for Python, but make sure you keep the semicolon at the end of the return even though it's unnecessery. I had the correct solution and output, but it only passed the test cases when I put back the semicolon.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Join us
Create a HackerRank account
Be part of a 26 million-strong community of developers
Please signup or login in order to view this challenge
Prime Dates
You are viewing a single comment's thread. Return to all comments →
Why hacker rank! why!
Input (stdin) 02-08-2025 04-09-2025 Your Output (stdout) 5 Expected Output 5
It shows error if you made changes in lines where you not supposed to change anything. Even if you move all as it is, the error still be there. Reset the code, and change only 5 lines that have a mistake helps me to submit. Just in case someone else would have the same issue.
Wow, that's bonkers. I ran into the same issue; I got the code working, who cares if I rewrote a bunch of it?!
This happened to me too. It's dumb for Python, but make sure you keep the semicolon at the end of the return even though it's unnecessery. I had the correct solution and output, but it only passed the test cases when I put back the semicolon.