title: Get last price to see if profit or not. Print it in color
body: <p>The Code is about the current price from the apple stock.
  Now I want to show if they make profit or not.</p>
  
  <p>Example:
  current Price: 155.1</p>
  
  <p>Price after that: 155.2 </p>
  
  <p>Now i want that it prints like that.</p>
  
  <p>155.1 (First Price when program starts)</p>
  
  <p>155.2 (Second Price) in green because profit to the previous price and if it drops like:</p>
  
  <p>155.1 (Third Price) in red because there is no profit because previus value was 155.2</p>
  
  <p>Hopefully you guys understood :D
  My English is not that good</p>
  
  <pre><code>import bs4
  import requests
  from bs4 import BeautifulSoup
  
  
  def parsePrice():
      r = requests.get('https://www.finanzen.net/realtimekurs/Apple')
      soup = BeautifulSoup(r.text,"lxml")
      price = soup.find_all('div',{'class':'price'})[0].find('span').text
      return price
  
  
  while True:
      print("Price:"+str(parsePrice()))
  </code></pre>