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.
Ok understood, thanks man
This comment is hidden because it contains spoiler information about the solution
i have no idea about .get() function. Can you explain me what does "k" variable do there?
@lechevalier is right,
//
and/
have the same behaviour here in Python 2; and using.iteritems
is Python 2 only syntax anyway so the solution would not be Python 3 comptabile with//
anywayfloor division is easier to see, however. best not to depend on quirks of the language. this also preserves forwards compatibility with python3
All quantities are integers, so
//
and/
will have the same behaviour in python 2.Floor division is more precise. Thank you! Take my vote!