/**
 * This function returns information about a specific actor or actress.
 * Input: actorType (String) - the type of actor ("actor" or "actress")
 * Output: Triple (actorName, actorAge, awardOrNot)
 */
fun getActorInfo(actorType: String): Triple<String, Int?, Boolean?> {

    val actors = mapOf(
        "actor" to Triple("Tom Hanks", 64, true),
        "actress" to Triple("Meryl Streep", 71, false)
    )

    // Use Elvis operator to simplify the code
    val (actorName, actorAge, awardOrNot) = actors[actorType] ?: Triple("Unknown", null, null)

    return Triple(actorName, actorAge, awardOrNot)
}
/**
 * This function returns information about a specific actor or actress.
 * Input: actorType (String) - the type of actor ("actor" or "actress")
 * Output: Triple (actorName, actorAge, awardOrNot)
 */
fun getActorInfo(actorType: String): Triple<String, Int?, Boolean?> {
/**
 * This function returns information about a specific actor or actress.
 * Input: actorType (String) - the type of actor ("actor" or "actress")
 * Output: Triple (actorName, actorAge, awardOrNot)
 */
fun getActorInfo(actorType: String): Triple<String, Int?, Boolean?> {

    val actors = mapOf(
        "actor" to Triple("Tom Hanks", 64, true),
        "actress" to Triple("Meryl Streep", 71, false)
    )

    // Use Elvis operator to simplify the code
    val (actorName, actorAge, awardOrNot) = actors[actorType] ?: Triple("Unknown", null, null)

    return Triple(actorName, actorAge, awardOrNot)
}