/**
 * As a Physical Therapist, your task is to create a tuple and access specific values from a given dictionary.
 *
 * You need to perform the following steps to solve this exercise:
 * 1. Create a tuple with the keys of the dictionary.
 * 2. Access the values in the dictionary using the keys from the tuple.
 *
 * Complete the code below to solve the exercise.
 */
fun createTupleAndAccessValues(dictionary: Map<String, Any>): Pair<List<String>, List<Any>> {

    // Step 1: Creating a tuple
    val tupleKeys = dictionary.keys.toList() // Create a list of keys from the dictionary.

    // Step 2: Accessing values in the dictionary
    // Use the variable 'tupleKeys' to access the corresponding values in the dictionary.
    // Hint: Use dictionary[key] to access the value associated with a particular key.
    val tupleValues = tupleKeys.map { key -> dictionary[key]!! } // Create a list of values using the keys from the tuple.

    return Pair(tupleKeys, tupleValues)
}
/**
 * As a Physical Therapist, your task is to create a tuple and access specific values from a given dictionary.
 *
 * You need to perform the following steps to solve this exercise:
 * 1. Create a tuple with the keys of the dictionary.
 * 2. Access the values in the dictionary using the keys from the tuple.
 *
 * Complete the code below to solve the exercise.
 */
fun createTupleAndAccessValues(dictionary: Map<String, Any>): Pair<List<String>, List<Any>> {
/**
 * As a Physical Therapist, your task is to create a tuple and access specific values from a given dictionary.
 *
 * You need to perform the following steps to solve this exercise:
 * 1. Create a tuple with the keys of the dictionary.
 * 2. Access the values in the dictionary using the keys from the tuple.
 *
 * Complete the code below to solve the exercise.
 */
fun createTupleAndAccessValues(dictionary: Map<String, Any>): Pair<List<String>, List<Any>> {

    // Step 1: Creating a tuple
    val tupleKeys = dictionary.keys.toList() // Create a list of keys from the dictionary.

    // Step 2: Accessing values in the dictionary
    // Use the variable 'tupleKeys' to access the corresponding values in the dictionary.
    // Hint: Use dictionary[key] to access the value associated with a particular key.
    val tupleValues = tupleKeys.map { key -> dictionary[key]!! } // Create a list of values using the keys from the tuple.

    return Pair(tupleKeys, tupleValues)
}