/**
 * Chef is creating a tuple with nested loops.
 *
 * The chef has a list of ingredients and a list of actions to perform with a knife.
 * The chef wants to create a tuple by iterating over the ingredients and actions using nested loops.
 * Each tuple element should be a combination of an ingredient and an action.
 *
 * Your task is to complete the code to create the desired tuple using nested loops.
 *
 * @param chefIngredients A list of chef's ingredients.
 * @param knifeActions A list of actions to perform with a knife.
 * @return The tuple containing combinations of ingredients and actions.
 */
fun createTupleWithNestedLoops(chefIngredients: List<String>, knifeActions: List<String>): List<Pair<String, String>> {

    // Initializing an empty list to store the tuple elements
    val chefTuple = mutableListOf<Pair<String, String>>()

    // Outer loop to iterate over the ingredients
    for (ingredient in chefIngredients) {
        // Inner loop to iterate over the actions
        for (action in knifeActions) {
            // Adding the combination of ingredient and action as a tuple element to chefTuple
            chefTuple.add(Pair(ingredient, action))
        }
    }

    return chefTuple
}
/**
 * Chef is creating a tuple with nested loops.
 *
 * The chef has a list of ingredients and a list of actions to perform with a knife.
 * The chef wants to create a tuple by iterating over the ingredients and actions using nested loops.
 * Each tuple element should be a combination of an ingredient and an action.
 *
 * Your task is to complete the code to create the desired tuple using nested loops.
 *
 * @param chefIngredients A list of chef's ingredients.
 * @param knifeActions A list of actions to perform with a knife.
 * @return The tuple containing combinations of ingredients and actions.
 */
fun createTupleWithNestedLoops(chefIngredients: List<String>, knifeActions: List<String>): List<Pair<String, String>> {
/**
 * Chef is creating a tuple with nested loops.
 *
 * The chef has a list of ingredients and a list of actions to perform with a knife.
 * The chef wants to create a tuple by iterating over the ingredients and actions using nested loops.
 * Each tuple element should be a combination of an ingredient and an action.
 *
 * Your task is to complete the code to create the desired tuple using nested loops.
 *
 * @param chefIngredients A list of chef's ingredients.
 * @param knifeActions A list of actions to perform with a knife.
 * @return The tuple containing combinations of ingredients and actions.
 */
fun createTupleWithNestedLoops(chefIngredients: List<String>, knifeActions: List<String>): List<Pair<String, String>> {

    // Initializing an empty list to store the tuple elements
    val chefTuple = mutableListOf<Pair<String, String>>()

    // Outer loop to iterate over the ingredients
    for (ingredient in chefIngredients) {
        // Inner loop to iterate over the actions
        for (action in knifeActions) {
            // Adding the combination of ingredient and action as a tuple element to chefTuple
            chefTuple.add(Pair(ingredient, action))
        }
    }

    return chefTuple
}