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.
Exponentiation is right-associative.
You're reading the code of tests wrong. What you see there is a list of test cases, where each test case is a tuple of
(input_list, expected)
. If you read tests further, you see:You can see that the call looks like:
last_digit(test_input)
, wheretest_input
is a single, flat list. One list from the whole test set, one by one.The above picture you posted is not at all nested lists. More like tuples that have lists in them.
What do you mean, "arguments that hare nested lists"? There should be no nested lists anywhere. Why do you think that you are given nested lists as inputs?
See this fork with an explanation.