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.
Shouldn´t I just add a element to the list. I have done it by append. Even renamed the list.
Log
0 #input len
1 #output len
Test Passed
Random Tests
Log
2 #input len
3 #output len
3 should equal 4
Quote: "Could you please check the length of input and output (after receiving the output)? The output should have one extra value than input."
How to insert 1 value in the test and then 2 in the random tests? I just can pass one of both tests.
Test Passed
Log
[]
[12]
Random Tests
Log
[36, 76] #input
[36, 76, 12] #out
3 should equal 4
This comment is hidden because it contains spoiler information about the solution
Can somebody help me to understand what I had to do?
First I thought I should just return 'True', but it doesn´t matter what I return. The first test will always pass and some tests always fail.
The description is kind of strange and logically wrong.
isLeapYear(2000), True, 'Year 2000 was a leap year!' but 2000 is divisible by 100. So it should be no leap year.Also 1100 is divisible by 4, so is should be a leap year.
You should add the order of the rules or something to specify when to use which rule.
The description is wrong: (Python)
no strings will be passed into the list.
Test failed due to:
['o', 'l'] should equal False
Try to change the example to one of the test cases. First I thought I always had to take 5 L. Just change to "water" var.
Ok I couldn´t finde some helpfull link. Perhaps I could finish this Kata later.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
But here it makes no difference. Are there cases with an different solution? I only know or and | is a different with bigger numbers.
Is there a rule when to use "and" and when "&" ?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Perhaps because the tasks aren´t that hard (python). Just copy the code and run it line by line with printing each new part. Best practice would be with a comment.
Loading more items...