Robotics & Artificial Intelligence
The method used to count the number of characters in a string is …………… .
- length()
- len()
- count()
- None of these
Related Questions
The operator used to join two or more strings is …………… .
- +
- -
- *
- None of these
The method used to convert all characters of a string in upper case is …………… .
- toupper()
- upper()
- capital()
- case()
The method used to check that string contains all lower case letter is …………… .
- lower()
- small()
- issmall()
- islower()
What would be the output of following code …………… .
str1 = "Hello India" s1 = str1[1:3] print(s1)- He
- el
- Hlo
- None of these