title: Best way to initialize a static list in a Python module
body: <p>I have two Python modules: user.py and lib.py. lib.py contains certain functions that are written in the following way and are called from the user.py module:</p>
  
  <pre><code>def foo1():
      pass
  
  def foo2():
      pass
  
  def foo3():
      pass
  </code></pre>
  
  <p>Now I want to add a static list of strings in the lib.py module such that all the functions in lib.py module can use them. I want to strictly initialize the string list in the following way:</p>
  
  <pre><code>string_list = []
  string_list.append('string1')
  string_list.append('string2')
  string_list.append('string3')
  string_list.append('string4')
  </code></pre>
  
  <p>What is the most Pythonic way to achieve this? Would it be possible to do something like this that would work just fine?</p>
  
  <pre><code>string_list = []
  string_list.append('string1')
  string_list.append('string2')
  string_list.append('string3')
  string_list.append('string4')
  
  def foo1():
          print string_list[0]
  
      def foo2():
          print string_list[1]
  
      def foo3():
          print string_list[2]
  </code></pre>