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.
How is using the bc programming language (https://en.wikipedia.org/wiki/Bc_(programming_language) in a shell exercise supposed to be clever/best practice? Why didn't you use pure shell?
This comment is hidden because it contains spoiler information about the solution
Cheers!
This comment is hidden because it contains spoiler information about the solution
Apparently, parsing
ls
is a bad idea: http://mywiki.wooledge.org/ParsingLs.Hey, sorry I didn't reply sooner, haven't logged in here for a while. Thanks, Blind4Basics, for the explanation.
This comment is hidden because it contains spoiler information about the solution
Good idea! But now that that test has been added, most of the already accepted answers should not work.
For the Python version, a suggestion (from the PEP8):
"Function names should be lowercase, with words separated by underscores as necessary to improve readability."