input: Write a function that builds a Python web scraper to collect all the links from a given website URL. If the URL is valid and the webpage is accessible, the function should print each link found on the webpage. If the URL is invalid or the webpage is not accessible, the function should print "Invalid URL or webpage not accessible".
  def scrape_links(url):
      try:
          r = req.get(url)
          soup = BeautifulSoup(r.text, "html.parser")
          links = soup.find_all('a')
          for link in links:
              print(link.get('href'))
      except:
          print("Invalid URL or webpage not accessible")
  
  assert scrape_links("http://www.example.com/")==None # Actual output will be the printed links
  assert scrape_links("http://nonexistentwebsite.com/")=="Invalid URL or webpage not accessible" # Actual output will be printed "Invalid URL or webpage not accessible"
output: def scrape_links(url):
      try:
          r = req.get(url)
          soup = BeautifulSoup(r.text, "html.parser")
          links = soup.find_all('a')
          for link in links:
              print(link.get('href'))
      except:
          print("Invalid URL or webpage not accessible")