input: Write a python function to scrape all the links from a given URL and return them as a list.
  assert scrape_links('https://example.com') == ['https://www.iana.org/domains/example']
  assert isinstance(scrape_links('https://example.com'), list)
  assert all(isinstance(link, str) for link in scrape_links('https://example.com'))
output: def scrape_links(url):
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      links = [a.get('href') for a in soup.find_all('a', href=True)]
      return links