/**
 * You have been given an athlete map that contains information about their name, age, country, and different sports they excel in.
 * Your task is to modify the values of the athlete's name, age, country, and sports by using slicing techniques.
 * Replace the provided dashes "-----" with the appropriate code to solve the exercise.
 */
fun modifyValues(athlete: MutableMap<String, Any>): MutableMap<String, Any> {

    // Modify the athlete's name to "Usain Bolt"
    athlete["name"] = "Usain Bolt"

    // Modify the athlete's age to 34
    athlete["age"] = 34

    // Modify the athlete's country to "Jamaica"
    athlete["country"] = "Jamaica"

    // Modify the athlete's sports list to only contain the last two sports they excel in, which are '100m' and '200m'.
    athlete["sports"] = (athlete["sports"] as List<String>).takeLast(2)

    // Return the modified athlete map
    return athlete
}
/**
 * You have been given an athlete map that contains information about their name, age, country, and different sports they excel in.
 * Your task is to modify the values of the athlete's name, age, country, and sports by using slicing techniques.
 * Replace the provided dashes "-----" with the appropriate code to solve the exercise.
 */
fun modifyValues(athlete: MutableMap<String, Any>): MutableMap<String, Any> {
/**
 * You have been given an athlete map that contains information about their name, age, country, and different sports they excel in.
 * Your task is to modify the values of the athlete's name, age, country, and sports by using slicing techniques.
 * Replace the provided dashes "-----" with the appropriate code to solve the exercise.
 */
fun modifyValues(athlete: MutableMap<String, Any>): MutableMap<String, Any> {

    // Modify the athlete's name to "Usain Bolt"
    athlete["name"] = "Usain Bolt"

    // Modify the athlete's age to 34
    athlete["age"] = 34

    // Modify the athlete's country to "Jamaica"
    athlete["country"] = "Jamaica"

    // Modify the athlete's sports list to only contain the last two sports they excel in, which are '100m' and '200m'.
    athlete["sports"] = (athlete["sports"] as List<String>).takeLast(2)

    // Return the modified athlete map
    return athlete
}