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.
Thanks a lot that really helped...after some googling that is.
I recommend checking this out (that helped me) - http://effbot.org/zone/default-values.htm#what-to-do-instead
Thank you for the quick reply. I am just really surprised that the suggested solution from stackoverflow (which was endorsed by 478 people) did not work.
Anyhow, thanks a lot again! I really appreciate it.
Thank you very much. You are really a savior! Could I please ask you one additional question? Since you are clearly an expert.
print(isinstance(25/25.0, int))
or
print(isinstance((25/25.0), (int, long)))
Why do both of these return False? I found this method http://stackoverflow.com/questions/3501382/checking-whether-a-variable-is-an-integer-or-not but it simply does not seem to work for me.
I am going to use ().is_integer() as that seems to work but it is still bugging me why the method above does not work.
I agree with you that it is annoying :D
Anyhow, just put this inside your code and you will see for what numbers it is failing. You can do this for other exercises as well ;-)
print(quantity)
print(price)
This comment is hidden because it contains spoiler information about the solution
Aha, I see what you mean. So far I had the experience that the test cases would repeat in the beginning of the "Run Suite". Thank you!
In Python, my code passes all test cases but when I click on "Run Suite" the code fails on the second test case.
It is exactly the same as https://www.codewars.com/kata/grasshopper-shopping-list/python and http://www.codewars.com/kata/grasshopper-make-change/discuss/javascript
As I pointed out before on "Grasshopper - Make change", I don't see the point of creating duplicate exercises. Frankly, I do not see any value added.
Also, camelCase should not be used in Python - words should be lowercase and separated by underscores. To illustrate, instead of chancesCreated, shotsOnTarget, successfulDribbles please use chances_created, shots_on_target, successful_dribbles. mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility (last sentence taken from PEP 8: https://www.python.org/dev/peps/pep-0008/)
It is exactly the same as https://www.codewars.com/kata/grasshopper-shopping-list/python and http://www.codewars.com/kata/grasshopper-fantasy-points/javascript
Not sure why is the author creating multiple duplicate katas.
Would anyone be able to tell me - whether it is possible to write a code that would generate different output until it matches expected result of the exercise? In other words, brute force this exercise?
I already wrote a code that goes over all combination of 3 items in a list. However, I am just not sure how to define the expected output :-( this has really been bugging me.
This comment is hidden because it contains spoiler information about the solution
FYI - I tried the code here https://www.codewars.com/kata/get-the-mean-of-an-array/train/python and it was also working fine :/
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The instructions for the exercise should be clearer. It was not specified that the input may contain diacritics. At least one example with such condition should be illustrated.
Loading more items...