*operator can do string and list replication enter the following into the interactive shellspam 'hello,spam +world!spam 'hello world!bacon ['zophie'bacon * bacon ['zophie''zophie''zophie'methods method is the same thing as functionexcept it is "called ona value for exampleif list value were stored in spamyou would call the index(list method (which 'll explain shortlyon that list like sospam index('hello'the method part comes after the valueseparated by period each data type has its own set of methods the list data typefor examplehas several useful methods for findingaddingremovingand otherwise manipulating values in list finding value in list with the index(method list values have an index(method that can be passed valueand if that value exists in the listthe index of the value is returned if the value isn' in the listthen python produces valueerror error enter the following into the interactive shellspam ['hello''hi''howdy''heyas'spam index('hello' spam index('heyas' spam index('howdy howdy howdy'traceback (most recent call last)file ""line in spam index('howdy howdy howdy'valueerror'howdy howdy howdyis not in list when there are duplicates of the value in the listthe index of its first appearance is returned enter the following into the interactive shelland notice that index(returns not spam ['zophie''pooka''fat-tail''pooka'spam index('pooka'