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.
I solved it thank you @blind4basics
read the description again. ;)
In Python I am getting this error:
KeyError: 'shirt'
And other things are okay, I return the correct value of the total cost. But I have problem with the elements which are not in the dictionary. How can I solve it please, thank you.
Yes.
This comment is hidden because it contains spoiler information about the solution
That makes sense. Thank you!
charAt
will fail if name is''
orundefined
.This comment is hidden because it contains spoiler information about the solution
Sorry! I'm using JavaScript!
TypeError: Cannot read property 'charAt' of undefined
at hello
at /home/codewarrior/index.js:16:20
at /home/codewarrior/index.js:18:5
at Object.handleError
It's javascript, and it should work in both cases, please provide an example of your code that doesn't work marking your post as having spoiler content.
Hi Jenna,
Please specify the programming language in your messages. And if possible try to paste the error message here. Thank you.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I answered a post like this above, too. Check https://stackabuse.com/default-arguments-in-python-functions/ website out and scroll to "Functions with default arguments". The key here is to use optional or default arguments...
Hope this helps. 😀
Thanks a lot for this kata! I really liked it as it forced me to learn what optional and default arguments are. This "8kyu" problem was certainly a quality challenge. Rated it a "very".
Thanks once again. 😊
Loading more items...