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.
This comment is hidden because it contains spoiler information about the solution
Sorry. That was my mistake.
This comment is hidden because it contains spoiler information about the solution
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 think that this is clever but not best practices at all.
E.g. you have chars = ['A', 'B', 'D']
Instead of 2-3 loop cycles you need to make 26 cycles for lowercase letter and then 2-3 cycles for uppercase letters.
Thus we do not have to maintain counters of chars at all. I think your comment is very useful one.
I think that it is pretty clever because in case of
numbers=None
exception will be raised. But if we are waiting integer to be returned maybe returning 0 is more suitable here. But nevermind.Sorry, but I do not think that this silution is pythonic way. So it is neither best pratices nor clever. But it is my own opinion.
I think that the script would be much simplier, e.g.
if [[ -z "$1" ]]; then
echo "Nothing to do"
exit 1
fi
the rest code here...
I think this is not a problem here.
Quotation of var $1 is mandatory. In the other case this script fails when file name contains spaces.