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.
0.66 => 'Correct, it should be [ '1/2', '1/7', '1/59', '1/5163', '1/53307975', '1/9007199254740992' ]' => Not true :-)
@JF: the example tests are misleading, but if you actually read them as a whole, here is what you'll see at the bottom of them:
if the description is talking about an array of strings, don't expect the tests to provide anything else, even if, the data is originally stored in a different format for better readability.
The input to the function is not a string. It is a list of strings.
List
does not have the same methods as astr
. When both Blind4Basics and Hobovsky give you a hint, you'd better start believing it.In tests for this kata,
m
is not a string.errr, that was actually a fairly neutral comment, sorry it turned out that way... ':)
What I meant is that you surely use that function the wrong way, so you should go read the documentation about it to understand why it's currently causing problems and how you could use it in more appropriated ways.
Dealing with documentation is a huge part of learning programming languages so you'd better get used to it asap. I'm actually surprized I was to say it to a 3kyu user... :o
you should read the documentation about that method
It says words can have "'" before, after or middle of them, so "'" is of course not a word.
you did. you got 29. that's what
\x1d
is. it's 29. you would append 29 to your bytestring.not
"29"
, that's not a number, that is text.29
.a bytestring is a bunch of bytes. a byte is an integer. your first byte is 29.
I think I might finally see what you're saying
\x1d
is one byte. A byte is 8 bits, it can have one of the values 0..255. So which of 0..255 is\x1d
? Maybe start with something simpler, like zero, then one, then two.(And there are no backslashes anywhere here, same as how a list doesn't have
[
's in it)"1a"
probably doesn't encode tob"\x1a"
though, right? You can't encode "purple" like that, there's nob"\xpu\xrp\xle"
Are you misreading that? There are no backslashes in that string.
The description explicitly states:
You can use try/except if you like, but if you catch an error you need to raise it again to pass the test.
Read the posts below, it's been discussed before. And yes, the sum of divisors of 441 is 300.
Same here, too. Strange. But, is it actually, correct? Sum of divisors for 441 is 300, if i am right?
Can you elaborate?
Loading more items...