/**
 * Farmer's List Comprehension Exercise - Creating Empty Lists
 *
 * Farmer Brown needs your help in organizing his vegetable garden.
 * He wants to create empty lists to hold the different types of vegetables he grows.
 * Use list comprehension to create empty lists for each type of vegetable.
 *
 * @param farmers Names of the farmers helping Farmer Brown.
 * @param vegetables Types of vegetables to be grown in the garden.
 * @return A dictionary where each key is a farmer's name and the value is a list containing the empty lists for each vegetable type.
 */
fun createEmptyLists(farmers: List<String>, vegetables: List<String>): Map<String, List<Int>> {

    // Initialize an empty dictionary
    val garden = mutableMapOf<String, List<Int>>()

    // Use list comprehension to create empty lists for each vegetable type for each farmer's name
    for (farmer in farmers) {
        garden[farmer] = List(vegetables.size) { 0 }
    }

    return garden
}
/**
 * Farmer's List Comprehension Exercise - Creating Empty Lists
 *
 * Farmer Brown needs your help in organizing his vegetable garden.
 * He wants to create empty lists to hold the different types of vegetables he grows.
 * Use list comprehension to create empty lists for each type of vegetable.
 *
 * @param farmers Names of the farmers helping Farmer Brown.
 * @param vegetables Types of vegetables to be grown in the garden.
 * @return A dictionary where each key is a farmer's name and the value is a list containing the empty lists for each vegetable type.
 */
fun createEmptyLists(farmers: List<String>, vegetables: List<String>): Map<String, List<Int>> {
/**
 * Farmer's List Comprehension Exercise - Creating Empty Lists
 *
 * Farmer Brown needs your help in organizing his vegetable garden.
 * He wants to create empty lists to hold the different types of vegetables he grows.
 * Use list comprehension to create empty lists for each type of vegetable.
 *
 * @param farmers Names of the farmers helping Farmer Brown.
 * @param vegetables Types of vegetables to be grown in the garden.
 * @return A dictionary where each key is a farmer's name and the value is a list containing the empty lists for each vegetable type.
 */
fun createEmptyLists(farmers: List<String>, vegetables: List<String>): Map<String, List<Int>> {

    // Initialize an empty dictionary
    val garden = mutableMapOf<String, List<Int>>()

    // Use list comprehension to create empty lists for each vegetable type for each farmer's name
    for (farmer in farmers) {
        garden[farmer] = List(vegetables.size) { 0 }
    }

    return garden
}