Please enable JavaScript to use CodeHS

APCSP20: AAP-1.D.8

CodeHS Lessons

The exam reference sheet describes a list structure whose index values are 1 through the number of elements in the list, inclusive. For all list operations, if a list index is less than 1 or greater than the length of the list, an error message is produced and the program will terminate.