/**
 * In this exercise, you need to complete the code to access specific values in a nested dictionary using indexing.
 *
 * The athlete dictionary contains various details about an athlete, including their name, age, nationality, and achievements.
 * Your task is to access the following values from the athlete dictionary using indexing:
 * - The athlete's name
 * - The athlete's nationality
 * - The athlete's first achievement
 *
 * Complete the code below to access the values using indexing.
 *
 * @param athlete A dictionary containing details about an athlete.
 * @return A tuple containing the athlete's name, nationality, and first achievement.
 */
fun accessValuesInDictIndexing(athlete: Map<String, Any>): Triple<String, String, String> {

    val name = athlete["name"] as String  // Access the athlete's name using indexing
    val nationality = athlete["nationality"] as String  // Access the athlete's nationality using indexing
    val achievement = (athlete["achievements"] as List<String>)[0]  // Access the athlete's first achievement using indexing

    return Triple(name, nationality, achievement)
}
/**
 * In this exercise, you need to complete the code to access specific values in a nested dictionary using indexing.
 *
 * The athlete dictionary contains various details about an athlete, including their name, age, nationality, and achievements.
 * Your task is to access the following values from the athlete dictionary using indexing:
 * - The athlete's name
 * - The athlete's nationality
 * - The athlete's first achievement
 *
 * Complete the code below to access the values using indexing.
 *
 * @param athlete A dictionary containing details about an athlete.
 * @return A tuple containing the athlete's name, nationality, and first achievement.
 */
fun accessValuesInDictIndexing(athlete: Map<String, Any>): Triple<String, String, String> {
/**
 * In this exercise, you need to complete the code to access specific values in a nested dictionary using indexing.
 *
 * The athlete dictionary contains various details about an athlete, including their name, age, nationality, and achievements.
 * Your task is to access the following values from the athlete dictionary using indexing:
 * - The athlete's name
 * - The athlete's nationality
 * - The athlete's first achievement
 *
 * Complete the code below to access the values using indexing.
 *
 * @param athlete A dictionary containing details about an athlete.
 * @return A tuple containing the athlete's name, nationality, and first achievement.
 */
fun accessValuesInDictIndexing(athlete: Map<String, Any>): Triple<String, String, String> {

    val name = athlete["name"] as String  // Access the athlete's name using indexing
    val nationality = athlete["nationality"] as String  // Access the athlete's nationality using indexing
    val achievement = (athlete["achievements"] as List<String>)[0]  // Access the athlete's first achievement using indexing

    return Triple(name, nationality, achievement)
}