Hi All,
I’m trying to get this problem:
I have a list of “n” items.
-If the list has only one element (n=1), then return the list.
-If not, create a list with sublists of: the first element, the last element and an arange of the rest of items left.
This is my script, but I get an error "A cyclic dependency exist between two variables"
Also, If the list has 2 elements, I want only the first and last Item but not the empty list between.
¿What am I missing here? ¿How would you do it with python - for learning purposes?
Thanks in advance (10.7 KB)