if you try accessing an index that is too largeyou'll get an indexerror that will crash your program try entering the following into the interactive shellanimals ['aardvark''anteater''antelope''albert'animals[ traceback (most recent call last)file ""line in animals[ indexerrorlist index out of range changing the values of list items with index assignment you can also use the square brackets to change the value of an item in list try entering the following into the interactive shellanimals ['aardvark''anteater''antelope''albert'animals[ 'anteateranimals ['aardvark''anteater''antelope''albert'the new 'anteaterstring overwrites the second item in the animals list so animals[ will evaluate to the list' second item in expressionsbut you can also use it on the left side of an assignment statement to assign value as the list' second item list concatenation you can join lists into one list with the operatorjust like you can join strings joining lists with the operator is list concatenation try entering the following into the interactive shell[ ['apples''oranges'['alice''bob'[ 'apples''oranges''alice''bob'['apples'['oranges'will evaluate to ['apples''oranges'but ['apples''orangeswill result in an error you cannot add list value and string value instead of two list values if you want to add non-list values to listuse the append(method (described laterthe in operator the in operator can tell you if value is in list or not expressions that use the in operator return boolean valuetrue if the value is in the list and false if it isn' try entering the following into the interactive shellanimals ['aardvark''anteater''antelope''albert''antelopein animals