/**
 * Given a list of numbers [lst] and a number [num], the function multiplies each element in the list by [num] and returns a new list.
 *
 * @param lst a list of numbers
 * @param num a number to multiply with each element in the list
 * @return a new list with elements resulting from multiplying each element in [lst] by [num]
 */
fun multiplyListElements(lst: List<Int>, num: Int): List<Int> {

    // initializing an empty list to store the results
    val newLst = mutableListOf<Int>()

    // iterating through each element in the list
    for (element in lst) {
        // multiplying the element by [num] and appending it to the new list
        newLst.add(element * num)
    }

    // returning the new list
    return newLst
}
/**
 * Given a list of numbers [lst] and a number [num], the function multiplies each element in the list by [num] and returns a new list.
 *
 * @param lst a list of numbers
 * @param num a number to multiply with each element in the list
 * @return a new list with elements resulting from multiplying each element in [lst] by [num]
 */
fun multiplyListElements(lst: List<Int>, num: Int): List<Int> {
/**
 * Given a list of numbers [lst] and a number [num], the function multiplies each element in the list by [num] and returns a new list.
 *
 * @param lst a list of numbers
 * @param num a number to multiply with each element in the list
 * @return a new list with elements resulting from multiplying each element in [lst] by [num]
 */
fun multiplyListElements(lst: List<Int>, num: Int): List<Int> {

    // initializing an empty list to store the results
    val newLst = mutableListOf<Int>()

    // iterating through each element in the list
    for (element in lst) {
        // multiplying the element by [num] and appending it to the new list
        newLst.add(element * num)
    }

    // returning the new list
    return newLst
}