/**
 * Given an actor's name, a dictionary of movies they have acted in, and a dictionary of awards they have won,
 * returns a dictionary containing their movie count, total number of awards, and the average number of awards per movie.
 */
fun getActorMovieInfo(actorName: String, movies: Map<String, List<String>>, awards: Map<String, Map<String, Int>>): Map<String, Any> {

    if (actorName !in movies.keys || actorName !in awards.keys) {
        return mapOf("Error" to "Actor not found")
    }

    val actorMovies = movies[actorName]!!
    val actorAwards = awards[actorName]!!

    val movieCount = actorMovies.size
    val awardsCount = actorAwards.values.sum()
    val averageAwardsPerMovie = awardsCount.toDouble() / movieCount

    return mapOf("Movie Count" to movieCount, "Total Awards" to awardsCount, "Average Awards per Movie" to averageAwardsPerMovie)
}
/**
 * Given an actor's name, a dictionary of movies they have acted in, and a dictionary of awards they have won,
 * returns a dictionary containing their movie count, total number of awards, and the average number of awards per movie.
 */
fun getActorMovieInfo(actorName: String, movies: Map<String, List<String>>, awards: Map<String, Map<String, Int>>): Map<String, Any> {
/**
 * Given an actor's name, a dictionary of movies they have acted in, and a dictionary of awards they have won,
 * returns a dictionary containing their movie count, total number of awards, and the average number of awards per movie.
 */
fun getActorMovieInfo(actorName: String, movies: Map<String, List<String>>, awards: Map<String, Map<String, Int>>): Map<String, Any> {

    if (actorName !in movies.keys || actorName !in awards.keys) {
        return mapOf("Error" to "Actor not found")
    }

    val actorMovies = movies[actorName]!!
    val actorAwards = awards[actorName]!!

    val movieCount = actorMovies.size
    val awardsCount = actorAwards.values.sum()
    val averageAwardsPerMovie = awardsCount.toDouble() / movieCount

    return mapOf("Movie Count" to movieCount, "Total Awards" to awardsCount, "Average Awards per Movie" to averageAwardsPerMovie)
}