python search function list code example Example: python search list search = listname.index('search')