input: Write a function to extract text from a given URL using BeautifulSoup.
  assert extract_text('https://www.example.com/')!=[]
  assert isinstance(extract_text('https://www.example.com/'), list)
  assert len(extract_text('https://www.example.com/')) > 0
output: def extract_text(url):
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      texts = [element.get_text() for element in soup.find_all('p')]
      
      return texts