Complete the code to trim the list 'mylist' to keep only the first 100 elements.
LTRIM mylist 0 [1]
The LTRIM command keeps elements from the start index to the end index inclusive. To keep the first 100 elements, the end index should be 99 (since indexing starts at 0).
Complete the code to keep only the last 50 elements of the list 'events'.
LTRIM events [1] -1
Using negative indexes, -1 is the last element, so to keep last 50 elements, start at -49.
Fix the error in the command to keep only the first 10 elements of 'tasks'.
LTRIM tasks 0 [1]
The end index is inclusive and zero-based, so to keep 10 elements, the end index must be 9.
Fill both blanks to trim 'logs' list to keep elements from index 5 to 15.
LTRIM logs [1] [2]
The command keeps elements starting at index 5 and ending at index 15 inclusive.
Fill all three blanks to trim 'queue' list to keep elements from index 2 to 12.
LTRIM [1] [2] [3]
The command trims the list named 'queue' from index 2 to 12 inclusive.