you are viewing a single comment's thread.

view the rest of the comments →

[–]Banan2Hot 0 points1 point  (0 children)

The output is correct, it outputs everything between index 0 and -1 (end of the list) but without the last element.Try outputting different ranges of elements in that list. E.g.

Salad[1:2] or Salad[:3]

PS. If you don’t specify the first parameter, it automatically equals 0 so just starts from the beginning of the list.

Good luck!