title: Python split string into multiple string
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/743806/split-string-into-a-list-in-python">Split string into a list in Python</a>  </p>
  </blockquote>
  
  
  
  <p>I have a string with a lot of part-strings</p>
  
  <pre><code>&gt;&gt;&gt; s = 'str1, str2, str3, str4'
  </code></pre>
  
  <p>now I have a function like following </p>
  
  <pre><code>&gt;&gt;&gt; def f(*args):
          print(args)
  </code></pre>
  
  <p>what I need, is to split my string into multiple strings, so that my function prints something like this</p>
  
  <pre><code>&gt;&gt;&gt; f(s)
  ('str1', 'str2', 'str3', 'str4')
  </code></pre>
  
  <p>Has someone an idea, how I can perform this?</p>
  
  <ul>
  <li>edit:
  I did not searched a function to split a string into an array of Strings.</li>
  </ul>
  
  <p>This is what i searched for. </p>
  
  <pre><code>&gt;&gt;&gt; s = s.split(', ')
  &gt;&gt;&gt; f(*s)
  ('str1', 'str2', 'str3', 'str4')
  </code></pre>