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.
It's about the difference between
lists
being ordered andsets
being unordered.This comment is hidden because it contains spoiler information about the solution
Please use a spoiler flag when you post code, so that users who didn´t solve the kata cannot see it; I put the flag for you this time. Also use markdown tags to format your code or it's not usable. Refer to the documentation about this and more: https://docs.codewars.com/training/troubleshooting/#post-discourse
This comment is hidden because it contains spoiler information about the solution
Doing this,
name
will default to""
in case that the function is called without parameters.Search in the documentation of your language for "default argument".
I do not understand why we need to input (name="") in hello(). Someone can explain, please
simple but effective
@athipolkru's comment should be hidden as it spoils the solution.
I do not understand question description. Can someone explain by giving example in calculation? Thanks.
for
doesn't work the same way aswhile
This comment is hidden because it contains spoiler information about the solution