Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Well I got that one wrong for sure.
Yeah I misunderstood the requirements.
You read too much into it. When it says "input constraints" it doesn't mean you need to verify the inputs fall into that range. It means that all test case inputs to the function you create will fall into those ranges.
I don't need to verify that h hours will be greater than or equal to 0 and less than or equal to 23 when the contraints tell me the input will be 0 <= h <= 23.
This is also incorrect. Needs to take constraints into account.
It'd work anyways.
also, read the comments!
This comment is hidden because it contains spoiler information about the solution
Exactly how I did it :)
This comment is hidden because it contains spoiler information about the solution
i like this solution cleaner and clear
Thanks!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
bro...
That's because you didn't use elif. But it shouldn't matter if you return the price instead of printing it, return ends the function.
Loading more items...