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 the title and content as a tuple. If the title or content cannot be found, the function should return None for that element.
  assert scrape_homepage('https://www.example.com')==('Example Title', 'Example Content')
  assert scrape_homepage('https://www.nonexistentwebsite.com')==(None, None)
  assert scrape_homepage('https://www.anotherwebsite.com')==('Another Title', None)
  assert scrape_homepage('https://www.yetanotherwebsite.com')==(None, 'Yet Another Content')
output: import requests
  from bs4 import BeautifulSoup
  
  def scrape_homepage(url):
      try:
          response = requests.get(url)
          response.raise_for_status()
          soup = BeautifulSoup(response.text, 'html.parser')
          title = soup.title.string.strip() if soup.title else None
          content = soup.get_text().strip() if soup.get_text() else None
          return (title, content)
      except:
          return (None, None)