/**
 * This exercise is about appending elements to a list using the division assignment operator.
 *
 * Instructions:
 * 1. You are given a list called chefList and an ingredient.
 * 2. Append the ingredient to the chefList using the division assignment operator.
 * 3. Return the updated chefList.
 *
 * Example:
 * chefList = mutableListOf("salt", "pepper")
 * ingredient = "chili powder"
 * The expected output is: ["salt", "pepper", "chili powder"]
 *
 * Note:
 * - The division assignment operator (/=) is used to divide a value by another value and assign the result back to the original variable.
 * - In this exercise, we are using it as a symbol to append elements to a list.
 * - Make sure to use the correct operator to achieve the desired result.
 * - Do not use any built-in functions or methods for appending elements to a list.
 */
fun cook(chefList: MutableList<String>, ingredient: String): MutableList<String> {

    // Append the ingredient to the chefList using the division assignment operator
    chefList += ingredient
    return chefList
}
/**
 * This exercise is about appending elements to a list using the division assignment operator.
 *
 * Instructions:
 * 1. You are given a list called chefList and an ingredient.
 * 2. Append the ingredient to the chefList using the division assignment operator.
 * 3. Return the updated chefList.
 *
 * Example:
 * chefList = mutableListOf("salt", "pepper")
 * ingredient = "chili powder"
 * The expected output is: ["salt", "pepper", "chili powder"]
 *
 * Note:
 * - The division assignment operator (/=) is used to divide a value by another value and assign the result back to the original variable.
 * - In this exercise, we are using it as a symbol to append elements to a list.
 * - Make sure to use the correct operator to achieve the desired result.
 * - Do not use any built-in functions or methods for appending elements to a list.
 */
fun cook(chefList: MutableList<String>, ingredient: String): MutableList<String> {
/**
 * This exercise is about appending elements to a list using the division assignment operator.
 *
 * Instructions:
 * 1. You are given a list called chefList and an ingredient.
 * 2. Append the ingredient to the chefList using the division assignment operator.
 * 3. Return the updated chefList.
 *
 * Example:
 * chefList = mutableListOf("salt", "pepper")
 * ingredient = "chili powder"
 * The expected output is: ["salt", "pepper", "chili powder"]
 *
 * Note:
 * - The division assignment operator (/=) is used to divide a value by another value and assign the result back to the original variable.
 * - In this exercise, we are using it as a symbol to append elements to a list.
 * - Make sure to use the correct operator to achieve the desired result.
 * - Do not use any built-in functions or methods for appending elements to a list.
 */
fun cook(chefList: MutableList<String>, ingredient: String): MutableList<String> {

    // Append the ingredient to the chefList using the division assignment operator
    chefList += ingredient
    return chefList
}