title: How to pass list of string as function argument in python?
body: <p>I'm having a list of string and i need to pass it to function as a parameter.</p>
  <pre><code>a_list = ['apple-banana','brinjal-carrot','cucumber']
  
  function_call = fruit(a_list)
  
  def fruit(a_list):
    print(&quot;Inside Function:&quot;)
    print(a_list)
    if(len(a_list)!=0):
       for i in a_list:
          print(i)
  </code></pre>
  <p>But what I'm getting for a_list is something like this:</p>
  <pre><code>['a','p','p','l','e','-','b','a','n','a','n','a',....]
  </code></pre>
  <p>What I need is:</p>
  <pre><code>Inside Function:
  'apple-banana'
  'brinjal-carrot'
  'cucumber'
  </code></pre>
  <p>Where I'm going wrong.?</p>
  <p>Thanks.</p>