/**
 * Create a list of movies released by an actor/actress between the given start and end years.
 *
 * @param startYear The year representing the start of the range.
 * @param endYear The year representing the end of the range.
 * @return A list of movies released by the actor/actress.
 */
fun createMoviesList(startYear: Int, endYear: Int): List<String> {

    val movies = mutableListOf<String>()
    for (year in startYear..endYear) {
        print("Enter the movie released in the year $year: ")
        val movie = readLine()
        movies.add(movie.orEmpty())
    }
    return movies
}
/**
 * Create a list of movies released by an actor/actress between the given start and end years.
 *
 * @param startYear The year representing the start of the range.
 * @param endYear The year representing the end of the range.
 * @return A list of movies released by the actor/actress.
 */
fun createMoviesList(startYear: Int, endYear: Int): List<String> {
/**
 * Create a list of movies released by an actor/actress between the given start and end years.
 *
 * @param startYear The year representing the start of the range.
 * @param endYear The year representing the end of the range.
 * @return A list of movies released by the actor/actress.
 */
fun createMoviesList(startYear: Int, endYear: Int): List<String> {

    val movies = mutableListOf<String>()
    for (year in startYear..endYear) {
        print("Enter the movie released in the year $year: ")
        val movie = readLine()
        movies.add(movie.orEmpty())
    }
    return movies
}