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.
Does that have to do with the solution? I don't think so...
no, you can see all 4 sample tests. when you hit attempt, there will be fixed tests and then random tests.
Exactly
There is no need to generate all permutations to find the min.
a function's scope can contain a variable matching its name, so your final code doesn't actually throw any error, but yes, it is a bad practice
@yoyotooie congrats on the solve. :)
See above (manual notification)
This comment is hidden because it contains spoiler information about the solution
You have to think about if your inbound list of
*letters
is going to add up to a lot.Think if your list was
['x','x','x','x']
and your sum is 96. Thesum-26
is not flexible enough to capture that.*letters
https://docs.python.org/2/tutorial/controlflow.html#unpacking-argument-listsI think this is an ok grade for 7kyu.
Not 100% sure but maybe if you want to use it as a template to build out your own kata for submission if you have a good twist on the puzzle.
In "View Solution" I can see you have solved it now. I don't know why it's giving a syntax error now -- but glad you solved it!
That returns a tuple.
return
is not a function, andend=""
won't help. All you nned to do is justreturn i
.But then that would return it on the first item in
new_list
. So you accumulate onto a new string (and turn it into an integer), and then return that.For CW, you have to
return something
, notprint(something)
. Printing something won't do anything.You've solved many katas, don't you know that?
You didn't return anything O_o
Oops! You returned that on the first element of
odds
;/Please use Markdown formatting to post your code. I can't see how it's indented, so I don't know know the flow of the program.
Loading more items...