input: Write a python function to fetch and display the content of a webpage.
  assert fetch_and_display_content("https://www.example.com") is None  # Check if no error occurs
  assert fetch_and_display_content("https://www.nonexistentwebsite.fake") is None  # Check error handling for non-existent URL
output: def fetch_and_display_content(url):
      import requests
      try:
          response = requests.get(url)
          response.raise_for_status()  # Raises an HTTPError for bad responses
          print(response.text)
      except requests.exceptions.RequestException as e:
          print(f"An error occurred: {e}")