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.
nice, very nice.
7/3=2
I believe you mean
str()
funciton.you can have variable named
str
It's not uncommon for a data type to have specific requirements. Just because Python uses
", "
in its representation oflist
andtuple
doesn't mean everybody needs to do this.And yes, the description makes the
__str__
method part of the task, so one has to implement it. (It's not that hard, BTW.)Kata expects strings to have no spaces between values, while default python formating uses a space. So you need to overwrite the tuple printing and do it yourself...
For some reason I didn't have to pass all test cases to be able to submit final. It may be a bug... ?
Bug Report: Default argument name (str) is a keyword in Python, and should not be overwritten.