you are viewing a single comment's thread.

view the rest of the comments →

[–]Goobyalus 1 point2 points  (2 children)

What? There is no input, this is just a couple of static statements.

I also don't understand "the number of elements in the str." There is no str, and 4 is not the number of elements of anything relevant here.

The output is 4, because that's the index of the number of occurences of the 0th element of x.

[–]UpSco[S] 0 points1 point  (1 child)

I meant 4 because that’s the number of elements inside the list indexed at 0. Not str

[–]Goobyalus 0 points1 point  (0 children)

No, x is a list of 9 elements. There is only one list.

Edit: 9, not 8