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.
there's really no need to print your solutions on the discourse page. it is already available in the solutions tab. asking your query there makes more sense given the context
you are missing a start value in your range, for example 0 to 4 is range(0,5). In addition to that you should multiply the value at index with n value.
COBOL translation (author is inactive).
Because this is syntactically incorrect in Python.
This comment is hidden because it contains spoiler information about the solution
i do even know HAHAHAHA
Thanks for explaning that, I wish the person who made the kata would make that clear.
Honestly, it's as bad as this comment. Just saying that something is bad isn't helpful at all. Would be much more helpful to tell what specifically is bad, what can be improved or give some sugestions on how to improve.
Reverse is exactly like that, the first becomes the last and so on, what you're doing there is descending, not reversing.
the instructions say: return in reverse order.
But the solution as follows should equal [0, 2, 9, 3, 9, 8, 2, 6, 7, 5, 4]
so how is this reverse order? if it was reversed order, should not be [9,9,8,7,6,4,2,2,0]
It's not so hard if you understand the basics of objects and classes (i.e., object oriented programming in general).
date(2016, 6, 13)
= June 13th, 2016.date(2016, 7, 16)
= July 7th, 2016There are
33
days between these 2 dates.On the first test,
33
is smaller than thecycle_length
(35), hence returnsFalse
.On the second test,
33
is greater than thecycle_length
(28), hence returnsTrue
Hope that clears it up.
I spent too much time on it.
Loading more items...