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 thanks
Do you understand that you're comparing NESTING STRUCTURE, right? Read the description again if not. You're not comparing data types.
It doesn't say anything about each element datatype matching. You can think of the list elements like list and not a list (it doesn't matter which datatype is) if you want.
not the same INT is not equal STR.
The nesting structure is the same, not a kata issue. The data type doesn't matter, unless it is a list, because they can be nested, unlike the other data types.
Test that is wrong:
Test :
Testing to see if you tried a certain short-cut
[1,'[',']'] same as ['[',']',1]: False should equal True
3 elements but the first is INT and the first in the second is STR then is False not True
in the example test
test.assert_equals(same_structure_as([1,[1,1]],[[2,2],2]), False, "[1,[1,1]] not same as [[2,2],2]")
2 elements but the first id INT and the first in the second is LIST then is False
Boy did I over think this one lol
my code is the same, hahhaha great
that is a new list great.