input: Write a function to create a web scraper in Python that can extract hotel reviews from TripAdvisor. Define the URL and headers, make a request to the website, parse the HTML using BeautifulSoup, find all review containers, and extract the title and text from each review, printing them out for demonstration purposes.
  
  def extract_tripadvisor_reviews(url: str):
      import requests
      from bs4 import BeautifulSoup
      
      headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36'}
      
      response = requests.get(url, headers=headers)
      soup = BeautifulSoup(response.text, 'html.parser')
      reviews = soup.find_all('div', {'class': 'review-container'})
      
      for review in reviews:
          title = review.find('span', {'class': 'noQuotes'}).text
          text = review.find('p', {'class': 'partial_entry'}).text
          print(title)
          print(text)
          print('-' * 50)
  
  assert extract_tripadvisor_reviews('https://www.tripadvisor.com/Hotel_Review-g187147-d187789-Reviews-Interhotel_Posthotel_Wittelsbach-Fussen_Austria.html')
  
output: def extract_tripadvisor_reviews(url: str):
      import requests
      from bs4 import BeautifulSoup
      
      headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36'}
      
      response = requests.get(url, headers=headers)
      soup = BeautifulSoup(response.text, 'html.parser')
      reviews = soup.find_all('div', {'class': 'review-container'})
      
      for review in reviews:
          title = review.find('span', {'class': 'noQuotes'}).text
          text = review.find('p', {'class': 'partial_entry'}).text
          print(title)
          print(text)
          print('-' * 50)