/**
 * Given a list of numbers and a divisor, replace each number in the list with its quotient obtained by dividing it by the given divisor.
 *
 * @param nums A list of numbers.
 * @param divisor The divisor to divide the numbers with.
 * @return The list with each number replaced by its corresponding quotient.
 */
fun replaceNumbersWithQuotients(nums: List<Double>, divisor: Double): List<Double> {

    // Initialize an empty list to store the quotients
    val quotients = mutableListOf<Double>()

    // Iterate through each number in the given list
    for (num in nums) {
        // Divide the number by the given divisor and append the quotient to the quotients list
        quotients.add(num / divisor)
    }

    return quotients
}
/**
 * Given a list of numbers and a divisor, replace each number in the list with its quotient obtained by dividing it by the given divisor.
 *
 * @param nums A list of numbers.
 * @param divisor The divisor to divide the numbers with.
 * @return The list with each number replaced by its corresponding quotient.
 */
fun replaceNumbersWithQuotients(nums: List<Double>, divisor: Double): List<Double> {
/**
 * Given a list of numbers and a divisor, replace each number in the list with its quotient obtained by dividing it by the given divisor.
 *
 * @param nums A list of numbers.
 * @param divisor The divisor to divide the numbers with.
 * @return The list with each number replaced by its corresponding quotient.
 */
fun replaceNumbersWithQuotients(nums: List<Double>, divisor: Double): List<Double> {

    // Initialize an empty list to store the quotients
    val quotients = mutableListOf<Double>()

    // Iterate through each number in the given list
    for (num in nums) {
        // Divide the number by the given divisor and append the quotient to the quotients list
        quotients.add(num / divisor)
    }

    return quotients
}