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.
#TIL about the divmod operator, thank you!
where's the programming in this ?
very minor improvement, using
value
when calculatingpower
is cleaner flow-wise, as the copy is used as a loop terminator but the power is dependent on the initial value only.The original has an error case if the number given is out of range. This won't do that, so it's not functionally equivalent.
yeah, there should be a "too clever" button.