input: from typing import List
  
  def extract_data_from_website(url: str, tags: List[str]) -> List[str]:
      """ Extracts specific data from the given website using BeautifulSoup. 
      The data to be extracted is specified by a list of HTML tags.
      Each tag corresponds to an element that contains the data of interest.
      The extracted data will be returned as a list of strings.
      
      >>> extract_data_from_website("https://example.com", ['a'])
      ['https://example.com/link1', 'https://example.com/link2', 'https://example.com/link3']
      
      >>> extract_data_from_website("https://example.com", ['h1', 'h2', 'p'])
      ['Title 1', 'Subtitle 1', 'Paragraph 1', 'Title 2', 'Subtitle 2', 'Paragraph 2']
      """
      
      import requests
      from bs4 import BeautifulSoup
      
      # Get the web page
      webpage = requests.get(url)
      
      # Parse the web page
      soup = BeautifulSoup(webpage.content, 'html.parser')
      
      # Initialize an empty list to store the extracted data
      extracted_data = []
      
      # Iterate over each tag in the provided list of tags
      for tag in tags:
          elements = soup.find_all(tag)
          for element in elements:
              extracted_data.append(element.text.strip())
      
      return extracted_data
output:     import requests
      from bs4 import BeautifulSoup
      
      # Get the web page
      webpage = requests.get(url)
      
      # Parse the web page
      soup = BeautifulSoup(webpage.content, 'html.parser')
      
      # Initialize an empty list to store the extracted data
      extracted_data = []
      
      # Iterate over each tag in the provided list of tags
      for tag in tags:
          elements = soup.find_all(tag)
          for element in elements:
              extracted_data.append(element.text.strip())
      
      return extracted_data