the remove(method is passed the value to be removed from the list it is called on enter the following into the interactive shellspam ['cat''bat''rat''elephant'spam remove('bat'spam ['cat''rat''elephant'attempting to delete value that does not exist in the list will result in valueerror error for exampleenter the following into the interactive shell and notice the error that is displayedspam ['cat''bat''rat''elephant'spam remove('chicken'traceback (most recent call last)file ""line in spam remove('chicken'valueerrorlist remove( ) not in list if the value appears multiple times in the listonly the first instance of the value will be removed enter the following into the interactive shellspam ['cat''bat''rat''cat''hat''cat'spam remove('cat'spam ['bat''rat''cat''hat''cat'the del statement is good to use when you know the index of the value you want to remove from the list the remove(method is useful when you know the value you want to remove from the list sorting the values in list with the sort(method lists of number values or lists of strings can be sorted with the sort(method for exampleenter the following into the interactive shellspam [ - spam sort(spam [- spam ['ants''cats''dogs''badgers''elephants'spam sort(spam ['ants''badgers''cats''dogs''elephants'