You are given a list of words. Return a list of those that start and end with the 'a' character.
Filtering elements in collection
The 'a' list
Report a typo
Sample Input 1:
abracadabra mam dogSample Output 1:
[abracadabra]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.