input: Write a function to create a web scraper using Python that collects the title and content from the homepage of a given website. The function should take a URL as input and return a dictionary containing the title and content.
  
  
  import requests
  import bs4
  
  def web_scraper(url):
      r = requests.get(url)
      html = bs4.BeautifulSoup(r.text, "html.parser")
      
      # Find title
      title = html.find('title').text if html.find('title') else "No title found"
      
      # Find content
      content = html.find('div', {'class': 'content'}).text if html.find('div', {'class': 'content'}) else "No content found"
      
      return {'title': title, 'content': content}
  
  assert web_scraper('https://www.example.com')=={'title': 'Example Title', 'content': 'Example Content'}
  assert web_scraper('https://www.nonexistentwebsite.com')=={'title': 'No title found', 'content': 'No content found'}
  
output: def web_scraper(url):
      r = requests.get(url)
      html = bs4.BeautifulSoup(r.text, "html.parser")
      
      # Find title
      title = html.find('title').text if html.find('title') else "No title found"
      
      # Find content
      content = html.find('div', {'class': 'content'}).text if html.find('div', {'class': 'content'}) else "No content found"
      
      return {'title': title, 'content': content}