title: print comma separated if more than two values in the list python
body: <p>My input1:</p>
  
  <pre><code> values = ['1','2']
  </code></pre>
  
  <p>Expected output to print </p>
  
  <pre><code>   print 1, 2
  </code></pre>
  
  <p>my input2:</p>
  
  <pre><code>  values = ['1']
  </code></pre>
  
  <p>Expected output to print  </p>
  
  <pre><code>   print 1
  </code></pre>
  
  <p>my input3:</p>
  
  <pre><code>  values = ['1','2','3']
  </code></pre>
  
  <p>Expected output to print  </p>
  
  <pre><code>    print 1,2,3
  </code></pre>
  
  <p>Below is what i tried:</p>
  
  <pre><code>  for x in values:
        print x  
  </code></pre>