title: print password.strip(",") AttributeError: 'list' object has no attribute 'strip'
body: <p>I am fairly new to python. I am working on a random password generator. I was able to get my program to generate a 
  random password. However it has commas (<code>,</code>) in it. I would like to strip the commas out. </p>
  
  <p>It looks like I am getting an error with the strip command. The program below produces the output:</p>
  
  <blockquote>
    <p><code>AttributeError: 'list' object has no attribute 'strip'</code></p>
  </blockquote>
  
  <pre><code>#! /usr/bin/python
  
  import random
  import string
  
  def letter_num():
  letter = random.choice(string.letters)
  number = random.randint(0,9)
  letter_number = [letter, number]
  random_letnum = random.choice(letter_number)
  return random_letnum
  
  #print letter_num(),letter_num(),letter_num(),letter_num(),letter_num(),letter_num,letter_num(),letter_num()
  
  password = [letter_num(),letter_num(),letter_num(),letter_num(),letter_num(),letter_num(),letter_num(),letter_num()]
  print password.strip(",")
  </code></pre>