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.
Adding to this: The second element in the tuple is used to solve the ties of the first element. Thus
c.upper()
renders every element a capital letter so sorted seesbBaAa
asBBAAA
. To solve the ties forBB
andAAA
we usec.islower()
to get01
and010
sorted to10
and100
for the ties inside the same letters giving youBbAaa
.You can of course stack more than two criteria in the tuple for additional tie brakers.
This comment is hidden because it contains spoiler information about the solution