to add new values to listuse the append(and insert(methods enter the following into the interactive shell to call the append(method on list value stored in the variable spamspam ['cat''dog''bat'spam append('moose'spam ['cat''dog''bat''moose'the previous append(method call adds the argument to the end of the list the insert(method can insert value at any index in the list the first argument to insert(is the index for the new valueand the second argument is the new value to be inserted enter the following into the interactive shellspam ['cat''dog''bat'spam insert( 'chicken'spam ['cat''chicken''dog''bat'notice that the code is spam append('moose'and spam insert( 'chicken')not spam spam append('moose'and spam spam insert( 'chicken'neither append(nor insert(gives the new value of spam as its return value (in factthe return value of append(and insert(is noneso you definitely wouldn' want to store this as the new variable value ratherthe list is modified in place modifying list in place is covered in more detail later in "mutable and immutable data typeson page methods belong to single data type the append(and insert(methods are list methods and can be called only on list valuesnot on other values such as strings or integers enter the following into the interactive shelland note the attributeerror error messages that show upeggs 'helloeggs append('world'traceback (most recent call last)file ""line in eggs append('world'attributeerror'strobject has no attribute 'appendbacon bacon insert( 'world'traceback (most recent call last)file ""line in bacon insert( 'world'attributeerror'intobject has no attribute 'insertlists