except for the last (membership check)these are the same operations that we used before on strings the membership operation can be used to see if certain value appears anywhere in sequence here are couple of quick examples checking for membership in lists and stringlst [ , , , in lst true in lst false ans 'yans in 'yytrue by the waysince we can iterate through liststhe summing example from above can be written more simply and clearly this waysum for in ssum sum recall that one important difference between lists and strings is that lists are mutable you can use assignment to change the value of items in list lst [ lst[ lst[ "hellolst [ 'hello'lst[ lst [ 'hello'lst[ : ["slice""assignment"lst [ 'slice''assignment''hello'as the last example showsit' even possible to change an entire subsequence in list by assigning list into slice python lists are very flexible don' attempt this in other languagesas you knowlists can be created by listing items inside square brackets odds [ food ["spam""eggs""back bacon"silly [ "spam" " "empty [