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.
Lol. It looks like you're trying to program in C.
Yeah, that does make sense. I try to solve these in the least amount of effort though. I can't be bothered to import a module.
Haha, I want you to know, this made my day!
Woa, nice observation sir!
Thanks Dan!
I really should start using lambda's more, as it stands now I typically just use them in functions like:
It seems to me that's the most appropriate use for them.
Approved. Thank you!
I did do it with one list comprehension ;). But, the funny thing is, when I first did it, I did the same thing you did and used a dictionary to keep track of the sums. But before I submitted I thought to myself about when you said something about me not using list comprehension, I couldn't let that happen again! Lol
And no, I don't mind at all. I'm trying to do as much as I can, I was in school at KU and was hoping to get a CS degree to be able to work in this field, but, we ended up finding out my Mom was terminally ill with colon cancer. I decided to drop out and spend that year with her before she passed. Now, it seems almost impossible for me to get back into school with the unpaid federal school loans I have. So, I'm trying to do everything I can to acquire new skills and attempt to get my name out there so maybe one day I can get a job.
I agree with GiacomoSorbi, I had to read the discourse just to figure out what exactly I was supposed to do. Granted, I didn't spend much time thinking about it, it's just it was worded confusingly.
I think you'll find it much better from your own perspective, too, if you make it as simple as possible as more people will upvote it. Which means more honor for you!
No list comprehension! Blasphemy!
It's been approved, thank you for the contribution sir.
Translation approved. Thank you.
I know, I know. My argument is that it was really late when I started writing this kata, idk what I was thinking!
You know, I go through weird phases where
camel_case
feels right, and other times when it just looks ugly. But you're right, to be more Pythonic it should beexpected_utility
. And it would be helpful if you were to help add some tests. I wrote it rather late last night and I planned to go back through and add some more tests.I'm getting an error on the Python version, as soon as it switches to random test cases an error is thrown and none of my code is running.
"NameError: name 'keys' is not defined"
Loading more items...