input: Write a python function to extract and print text from a given URL, excluding text within 'style', 'script', 'head', 'title', 'meta', and '[document]' tags.
  assert extract_text_from_url('https://www.example.com').startswith('Example Domain')
  assert extract_text_from_url('https://www.iana.org/domains/example').startswith('Example domains')
  assert 'More information' in extract_text_from_url('https://www.example.com')
output: def extract_text_from_url(url):
      import requests
      from bs4 import BeautifulSoup
      
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      
      for element in soup(['style', 'script', 'head', 'title', 'meta', '[document]']):
          element.decompose()
      
      text = soup.get_text(separator=' ', strip=True)
      return text