/**
 * This exercise aims to test your understanding of removing elements from a list and creating a range with start and stop parameters.
 *
 * Instructions:
 * 1. Create a variable called 'actors' and assign it a list of the names of five actors or actresses.
 * 2. Use the 'IntRange' to create a range of numbers starting from the 'start' parameter up to the 'stop' parameter.
 * 3. Iterate over the range of numbers using a for loop.
 * 4. Within the loop, remove the element at the index corresponding to the current number from the 'actors' list.
 * 5. Finally, return the modified 'actors' list.
 *
 * Example:
 * removeElements(1, 5) -> ['Actor0', 'Actor2', 'Actor4']
 */
fun removeElements(start: Int, stop: Int): MutableList<String> {

    val actors = mutableListOf("Actor0", "Actor1", "Actor2", "Actor3", "Actor4")
    
    for (i in start until stop) {
        actors.removeAt(i)
    }

    return actors
}
/**
 * This exercise aims to test your understanding of removing elements from a list and creating a range with start and stop parameters.
 *
 * Instructions:
 * 1. Create a variable called 'actors' and assign it a list of the names of five actors or actresses.
 * 2. Use the 'IntRange' to create a range of numbers starting from the 'start' parameter up to the 'stop' parameter.
 * 3. Iterate over the range of numbers using a for loop.
 * 4. Within the loop, remove the element at the index corresponding to the current number from the 'actors' list.
 * 5. Finally, return the modified 'actors' list.
 *
 * Example:
 * removeElements(1, 5) -> ['Actor0', 'Actor2', 'Actor4']
 */
fun removeElements(start: Int, stop: Int): MutableList<String> {
/**
 * This exercise aims to test your understanding of removing elements from a list and creating a range with start and stop parameters.
 *
 * Instructions:
 * 1. Create a variable called 'actors' and assign it a list of the names of five actors or actresses.
 * 2. Use the 'IntRange' to create a range of numbers starting from the 'start' parameter up to the 'stop' parameter.
 * 3. Iterate over the range of numbers using a for loop.
 * 4. Within the loop, remove the element at the index corresponding to the current number from the 'actors' list.
 * 5. Finally, return the modified 'actors' list.
 *
 * Example:
 * removeElements(1, 5) -> ['Actor0', 'Actor2', 'Actor4']
 */
fun removeElements(start: Int, stop: Int): MutableList<String> {

    val actors = mutableListOf("Actor0", "Actor1", "Actor2", "Actor3", "Actor4")
    
    for (i in start until stop) {
        actors.removeAt(i)
    }

    return actors
}