We have a list of words, and we must check if each of the words in this list is a palindrome. Remember: a palindrome is a word or other sequence of characters which reads the same backward as forward (we don't care about the letter case in this exercise).
Test predicates: checking elements in collection
Is it a palindrome list?
Report a typo
Sample Input 1:
kayak deified rotator repaperSample Output 1:
trueWrite a program in Kotlin
/* Do not change code below */
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.