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.
Great response! Only issue for readability is not having the same number in the prompt in the code. Then again, it's simple enough it's not an issue
Please mark your post as having spoiler content next time. Your post was visible in the homepage discourse.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
TIL
If the water consumption rate was changed, any method would have to be rewritten. The rate is not provided as a parameter here, thus we have no choice but to perform a calculation based on a constant in the code. I suppose it could be assigned to a variable for ease of changing later, but that is not a requirement of this kata.
great answer. thank you
if the water consumption rate changes, this method will have to be completely rewritten
This is not a 7kyu kata...
can I strike my answer from ever having existed? is what I thought when I saw this
nice
getting real comfy with single liners now... dont know whether it'd be a good thing for the lon haul though!!
It's simply easier on the brain to read code top-down. 121 char length > PEP8 limit.
People love to flex with one-liners, and sometimes they are great... but other times like this one, bad practice.
Loading more items...