input: Write a function to create a web scraper using Python that collects the title and content from the homepage of a given website.
  import requests
  import bs4
  
  def scrape_homepage(url):
      r = requests.get(url)
      html = bs4.BeautifulSoup(r.text,"html.parser")
      
      # Find title
      title = html.find('title')
      title_text = title.text if title else None
      
      # Find content
      content = html.find('div', {'class': 'content'})
      content_text = content.text if content else None
      
      return {"title": title_text, "content": content_text}
  
  # Example Test Cases
  assert scrape_homepage('https://www.example.com') == {"title": "Example Domain", "content": "This domain is for use in illustrative examples in documents."}
  assert scrape_homepage('https://www.nonexistentdomain.com') == {"title": None, "content": None}
  assert scrape_homepage('https://www.example.co.uk') == {"title": "Example UK Domain", "content": "This domain is for use in illustrative examples in UK documents."}
output: def scrape_homepage(url):
      r = requests.get(url)
      html = bs4.BeautifulSoup(r.text,"html.parser")
      
      # Find title
      title = html.find('title')
      title_text = title.text if title else None
      
      # Find content
      content = html.find('div', {'class': 'content'})
      content_text = content.text if content else None
      
      return {"title": title_text, "content": content_text}