We have a list of words, and we must obtain the words with the length of 5 characters that are not in the first position of the list.
Filtering elements in collection
The secret is in the length
Report a typo
Sample Input 1:
dog mom dad peterSample Output 1:
[peter]Write a program in Kotlin
fun main() {
val list = readln().split(" ")
// write your code here
val res =
println(res)
}
___
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.