Robotics & Artificial Intelligence
The method used to check that string contains all lower case letter is …………… .
- lower()
- small()
- issmall()
- islower()
Python String Manipulation
1 Like
Answer
islower()
Reason — The islower() function returns True if the string is in lower case.
Answered By
3 Likes
Related Questions
The method used to convert all characters of a string in upper case is …………… .
- toupper()
- upper()
- capital()
- case()
The method used to count the number of characters in a string is …………… .
- length()
- len()
- count()
- None of these
What would be the output of following code …………… .
str1 = "Hello India" s1 = str1[1:3] print(s1)- He
- el
- Hlo
- None of these
What would be the output of following code?
Q1 = "Hello How are you" val = Q1.count("H") print(val)- 1
- 3
- 2
- Error