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.
func
The description claims that data passed into order is [float (or int), str], meaning that data passed into calculate should always have numbers at even indices, and strings at odd ones, i.e. [float, str, float, str, ... ].
However, in the actual test cases, some inputs are [str, float, str float, ... ] the opposite of what is stated.
i.e. the description contradicts the tests.
Why is
calculate
not tested in fixed tests?Description is doing a poor job at explaining how the price is related to the parts involved (e.g
Coffee is 3/8 of a dollar per oz
, okay, but what about croissants?).What is the purpose of
order
?And why is order passing through
order
beforecalculate
???order
turns orders into a less structured data structure that is less suitable for performing the task. The kata is outright teaching bad habits.Please finish the sample tests before publishing a kata. It is a mandatory part of a kata.
Also, a couple of days???
Missing sample tests.