/**
 * Given a dictionary 'actor' containing information about an actor/actress and a string 'awardType',
 * modify the dictionary to add or update the 'awardType' attribute.
 *
 * @param actor A dictionary containing actor/actress information.
 * @param awardType The type of award to add or update in the actor's dictionary.
 */
fun modifyActorAwards(actor: MutableMap<String, Any>, awardType: String) {

    if ("awards" in actor) {
        val awards = actor["awards"] as MutableMap<String, Int>
        awards[awardType] = awards.getOrDefault(awardType, 0) + 1
    } else {
        actor["awards"] = mutableMapOf(awardType to 1)
    }
}
/**
 * Given a dictionary 'actor' containing information about an actor/actress and a string 'awardType',
 * modify the dictionary to add or update the 'awardType' attribute.
 *
 * @param actor A dictionary containing actor/actress information.
 * @param awardType The type of award to add or update in the actor's dictionary.
 */
fun modifyActorAwards(actor: MutableMap<String, Any>, awardType: String) {
/**
 * Given a dictionary 'actor' containing information about an actor/actress and a string 'awardType',
 * modify the dictionary to add or update the 'awardType' attribute.
 *
 * @param actor A dictionary containing actor/actress information.
 * @param awardType The type of award to add or update in the actor's dictionary.
 */
fun modifyActorAwards(actor: MutableMap<String, Any>, awardType: String) {

    if ("awards" in actor) {
        val awards = actor["awards"] as MutableMap<String, Int>
        awards[awardType] = awards.getOrDefault(awardType, 0) + 1
    } else {
        actor["awards"] = mutableMapOf(awardType to 1)
    }
}