input: Write a function to fetch the contents of the homepage of a given domain. If the connection is successful and the status code is 200, print the content of the homepage. If there is an error, print "Error fetching the page".
  def fetch_homepage(url):
      response = requests.get(url)
      if response.status_code == 200:
          print(response.content)
      else:
          print("Error fetching the page")
  
  assert fetch_homepage("https://www.example.com/")=="Output varies depending on the content of the homepage but should be successful with status code 200"
  assert fetch_homepage("https://www.nonexistentdomain.com/")=="Error fetching the page"
output: def fetch_homepage(url):
      try:
          response = requests.get(url)
          if response.status_code == 200:
              print(response.content)
          else:
              print("Error fetching the page")
      except:
          print("Error fetching the page")