text: def main():
    list = ['larry', 'curly', 'moe']
    list.append('shemp')  ## append elem at end
    list.insert(0, 'xxx')  ## insert elem at index 0
    list.extend(['yyy', 'zzz'])  ## add list of elems at end
    print list  ## ['xxx', 'larry', 'curly', 'moe', 'shemp', 'yyy', 'zzz']
    print list.index('curly')  ## 2
  
    list.remove('curly')
    ## search and remove that element
    list.pop(1)  ## removes and returns 'larry'
    print list  ## ['xxx', 'moe', 'shemp', 'yyy', 'zzz']
  
  def build_list():
    list = []
    list.append('a')
    list.append('b')
  
  if __name__ == '__main__':
    main()