You have a list of students. Please print the representation of a map where the key is the name of the student and the value is the length. It is limited to two values, and when it is truncated, we use "*"; the map key and value should be separated by "->".
Collection transformations
List of students
Report a typo
Sample Input 1:
luis anne dimitrySample Output 1:
luis->4, anne->4, *Write a program in Kotlin
fun main() {
val list = readln().split(" ")
// write your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.