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.
Congrats dude! I have a similar solution.
This comment is hidden because it contains spoiler information about the solution
Its just a way of expresing the values received from tuple unpacking. It will work without the brackets too.
This comment is hidden because it contains spoiler information about the solution
I would settle for 'arrayOfSheep' just to deal with the grammar issue. :)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
A lambda is just a function created with a single expression and no name. So, the difference is negligible
a string can be treated as an array so no need for the []
This comment is hidden because it contains spoiler information about the solution
it's generator comprehension, not list comprehension, since you're not creating a list. this site explains it pretty well.
https://www.pythonlikeyoumeanit.com/Module2_EssentialsOfPython/Generators_and_Comprehensions.html
Leading zeros, probably.
Why not?
he only defines function inside function