title: Return items from list in function. Python
body: <pre><code>my_list = ['a','b','c']
  
  def func(input):
      for i in input:
          print i
  print func(my_list)
  </code></pre>
  
  <p>Output</p>
  
  <pre><code>a
  b
  c
  None
  </code></pre>
  
  <p>I don't want the 'None' so <strong>how I can do a single line of code to return the items in my input list?</strong></p>
  
  <p>I tried:</p>
  
  <pre><code>return for i in input: print i
  </code></pre>
  
  <p>but it didn't work because return statements don't work like that</p>