text: from helper_funcs import number_key_dict
  
  
  def travel_to(prev_location, locations):
      if prev_location == "Derelict Shrine":
          locations = locations + ["Mausoleum"]
      elif prev_location == "Abandoned Mine":
          locations = locations + ["Underwater Cave"]
  
      available_locations = number_key_dict(locations)
      loc_string = "\n".join(f"\t{i}) {loc}" for i, loc in available_locations.items())
      print(loc_string)
  
      choice = input("\nChoose location:\n")
      if choice in available_locations:
          return available_locations[choice]
      else:
          print("You can't go there!\n")
          return prev_location
  