input: Write a function to create a web scraper in Python that can extract hotel reviews from TripAdvisor. The function should take a URL as input, make a request to the URL, parse the HTML, and extract the title and text of each review. The function should print the title and text of each review for demonstration purposes.
  
  import requests
  from bs4 import BeautifulSoup
  
  def scrape_tripadvisor_reviews(url):
      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)
  
  # Test cases
  scrape_tripadvisor_reviews('https://www.tripadvisor.com/Hotel_Review-g60763-d122330-Reviews-The_Village_Lodge-Mammoth_Lakes_California.html')
  
  # Expected output:
  # Prints the title and text of each review found on the provided TripAdvisor URL.
output: 
  import requests
  from bs4 import BeautifulSoup
  
  def scrape_tripadvisor_reviews(url):
      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)
  