Create a function that takes a CharSequence as input and returns a boolean value indicating whether the input contains only alphabetic characters.
CharSequence
Only alphabetic characters
Report a typo
Sample Input 1:
Hello_worldSample Output 1:
falseSample Input 2:
HelloWorldSample Output 2:
trueWrite a program in Kotlin
fun containsOnlyAlphabets(charSequence: CharSequence): Boolean {
// 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.