/**
 * Given two lists - locations and temperatures,
 * return a list of pairs containing the name of the location and its corresponding temperature.
 *
 * Example:
 * Input:
 * locations = listOf("New York", "Los Angeles", "Chicago")
 * temperatures = listOf(20.5, 25.8, 15.2)
 *
 * Output:
 * [("New York", 20.5), ("Los Angeles", 25.8), ("Chicago", 15.2)]
 */
fun getLocationsAndTemperatures(locations: List<String>, temperatures: List<Float>): List<Pair<String, Float>> {

    val locationTemperaturePairs = mutableListOf<Pair<String, Float>>()

    for (index in locations.indices) {
        val location = locations[index]
        val temperature = temperatures[index]
        locationTemperaturePairs.add(Pair(location, temperature))
    }

    return locationTemperaturePairs
}
/**
 * Given two lists - locations and temperatures,
 * return a list of pairs containing the name of the location and its corresponding temperature.
 *
 * Example:
 * Input:
 * locations = listOf("New York", "Los Angeles", "Chicago")
 * temperatures = listOf(20.5, 25.8, 15.2)
 *
 * Output:
 * [("New York", 20.5), ("Los Angeles", 25.8), ("Chicago", 15.2)]
 */
fun getLocationsAndTemperatures(locations: List<String>, temperatures: List<Float>): List<Pair<String, Float>> {
/**
 * Given two lists - locations and temperatures,
 * return a list of pairs containing the name of the location and its corresponding temperature.
 *
 * Example:
 * Input:
 * locations = listOf("New York", "Los Angeles", "Chicago")
 * temperatures = listOf(20.5, 25.8, 15.2)
 *
 * Output:
 * [("New York", 20.5), ("Los Angeles", 25.8), ("Chicago", 15.2)]
 */
fun getLocationsAndTemperatures(locations: List<String>, temperatures: List<Float>): List<Pair<String, Float>> {

    val locationTemperaturePairs = mutableListOf<Pair<String, Float>>()

    for (index in locations.indices) {
        val location = locations[index]
        val temperature = temperatures[index]
        locationTemperaturePairs.add(Pair(location, temperature))
    }

    return locationTemperaturePairs
}