input: from typing import List
  
  def extract_hotel_reviews(url: str) -> List[str]:
      """Extracts hotel review titles and texts from a given TripAdvisor URL.
      The function returns a list of strings where each string is a review title 
      followed by a review text separated by a line of dashes ('-').
      
      >>> extract_hotel_reviews('https://www.tripadvisor.com/Hotel_Review-g60763-d1218720-Reviews-The_Lucerne_Hotel-New_York_City_New_York.html')
      ['Stay here every chance I get-This hotel is my go to place when I travel to NYC.',
       'Best Hotel TripAdvisor Has Reviewed-Had an amazing stay and can't wait to return.']
      """
      import requests
      from bs4 import BeautifulSoup
  
      # Define the headers
      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'}
  
      # Make a request and get HTML in response
      response = requests.get(url, headers=headers)
  
      # Parse HTML
      soup = BeautifulSoup(response.text, 'html.parser')
  
      # Find all reviews
      reviews = soup.find_all('div', {'class': 'review-container'})
  
      # List to store reviews
      review_list = []
  
      # Go through every review and extract the data
      for review in reviews:
          # Get the title
          title = review.find('span', {'class': 'noQuotes'}).text.strip() if review.find('span', {'class': 'noQuotes'}) else 'No Title'
  
          # Get the text
          text = review.find('p', {'class': 'partial_entry'}).text.strip() if review.find('p', {'class': 'partial_entry'}) else 'No Text'
  
          # Append the review to the list
          review_list.append(title + '-' + text)
      
      return review_list
output:     import requests
      from bs4 import BeautifulSoup
  
      # Define the headers
      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'}
  
      # Make a request and get HTML in response
      response = requests.get(url, headers=headers)
  
      # Parse HTML
      soup = BeautifulSoup(response.text, 'html.parser')
  
      # Find all reviews
      reviews = soup.find_all('div', {'class': 'review-container'})
  
      # List to store reviews
      review_list = []
  
      # Go through every review and extract the data
      for review in reviews:
          # Get the title
          title = review.find('span', {'class': 'noQuotes'}).text.strip() if review.find('span', {'class': 'noQuotes'}) else 'No Title'
  
          # Get the text
          text = review.find('p', {'class': 'partial_entry'}).text.strip() if review.find('p', {'class': 'partial_entry'}) else 'No Text'
  
          # Append the review to the list
          review_list.append(title + '-' + text)
      
      return review_list