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.
Why, a
forloop or recursion could solve this as well? Also how do you expect to enforce this?You're not using the Codewars Python Test Framework, making this kata impossible to complete.
https://docs.codewars.com/languages/python/codewars-test/
Missing solution and test framework import
Missing useful assertion messages
Duplicate 1
Duplicate 2
Description should be language agnostic. There is no reason to have the function name ( which may vary between languages ) in there.
Please use zero-based indexing - like all of Python. You can simply specify even indices are added and odd ones are subtracted instead of the wrong way 'round.