/**
 * This function takes a list of economists and appends new elements to it.
 *
 * @param economistList A list containing economists.
 * @param newElements A list of new elements to be appended.
 */
fun appendElements(economistList: MutableList<Any>, newElements: List<Any>) {

    // Iterate over each new element and append it to the economist list using a for loop
    for (element in newElements) {
        economistList.add(element)
    }

    // Print the updated economist list
    println(economistList)
}
/**
 * This function takes a list of economists and appends new elements to it.
 *
 * @param economistList A list containing economists.
 * @param newElements A list of new elements to be appended.
 */
fun appendElements(economistList: MutableList<Any>, newElements: List<Any>) {
/**
 * This function takes a list of economists and appends new elements to it.
 *
 * @param economistList A list containing economists.
 * @param newElements A list of new elements to be appended.
 */
fun appendElements(economistList: MutableList<Any>, newElements: List<Any>) {

    // Iterate over each new element and append it to the economist list using a for loop
    for (element in newElements) {
        economistList.add(element)
    }

    // Print the updated economist list
    println(economistList)
}