title: Why there is spaces in the output of my array
body: <p>I am trying to get list of specifics names from a web site to ultimately output them in a file. The website I am parsing is  <a href="https://translate.google.com/translate?sl=auto&amp;tl=en&amp;js=y&amp;prev=_t&amp;hl=en&amp;ie=UTF-8&amp;u=http%3A%2F%2Fwww.prenom-marocain.com&amp;edit-text=" rel="nofollow noreferrer">this one</a></p>
  
  <p>The code is certainly not perfect, but what is puzzling me is why is there spaces in the output between each group of names? </p>
  
  <pre><code> from urllib.request import urlopen
   from bs4 import BeautifulSoup as bS
   import re
  
  # get the internals links  
  
      def get_internals():
          array=[]
          html = urlopen("http://127.0.0.1/www.prenom-marocain.com")
          soup = bS(html,"lxml")
          azlinks = soup.find("nav", {"class":"page-nav"}).findAll("a", {"href":re.compile("^p.*$")})
          for links in azlinks:
              array.append(links.attrs['href'])
  
          return array
  
  
      # The function for fetching the names 
  
      def fetch_name(url):
          array=[]
          html = urlopen("http://127.0.0.1/www.prenom-marocain.com/"+url)
          soup = bS(html, "lxml")
          for child in soup.findAll("ul", {"class":"arrow"}):
              array.append(child.getText())
  
          return array
  
  
      alpha_array = get_internals()
  
  
      first_names=[]
  
      for links in alpha_array:
          first_name += (fetch_name(links))
  
  
      for names in first_names:
          print(names)
      `
  </code></pre>
  
  <p>How can I get rid of the spaces in the output ?
  Is it normal behavior for the array.append method ? 
  And what is the best way to store everything in a file ?
  Thanks in advance ! </p>