title: Python - How to move output text to the left / up?
body: <pre><code>#!/usr/bin/python
  
  from __future__ import print_function
  import textwrap
  import requests
  from bs4 import BeautifulSoup
  
  def bbb_spider(max_pages):
      bus_cat = raw_input('Enter a business category: ')
      pages = 1
      while pages &lt;= max_pages:
          url = 'http://www.bbb.org/search/?type=category&amp;input=' +     str(bus_cat) + '&amp;page=' + str(pages)
          sauce_code = requests.get(url)
          plain_text = sauce_code.text
          soup = BeautifulSoup(plain_text, "html.parser")
          for link in soup.select("table.search-results-table tr h4 a"):
              href = link.get('href')
              bbb_profiles(href)
          pages += 1
  
  def bbb_profiles(profile_urls):
      sauce_code = requests.get(profile_urls)
      plain_text = sauce_code.text
      soup = BeautifulSoup(plain_text, "html.parser")
      for business_name in soup.findAll("h1", {"class": "business-title"}):
          print(business_name.string)
      for business_phone in soup.findAll("span", {"class": "business-phone"}):
          print(business_phone.string)
      for business_address in soup.select("div.business-detail-text p span.nobr"):
          print(business_address.string, end=" ")
  
  sort_pages = input('How many pages to sort through?: ')
  bbb_spider(sort_pages)
  </code></pre>
  
  <p>So I have some output that looks like this:</p>
  
  <pre><code>Phone
                      Address      Name of Business
  </code></pre>
  
  <p>What I would like to have is:</p>
  
  <pre><code> Name of Business 
   Phone
   Address
  </code></pre>
  
  <p>Basically what's happening here is that throughout my foreach loop, for the next block of items arranged how i'd like (name, phone, address), the name is on the same line as the previous address's block. So what I'm trying to do is bring the name down and to the left, then address to the left, and then the phone will be fine as is. </p>