Robotics & Artificial Intelligence
What would be the output of following code …………… .
str1 = "Hello India"
s1 = str1[1:3]
print(s1)
- He
- el
- Hlo
- None of these
Related Questions
The method used to count the number of characters in a string is …………… .
- length()
- len()
- count()
- None of these
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?
Q1 = "Hello How are you" val = Q1.count("H") print(val)- 1
- 3
- 2
- Error
The method used to check that all characters in a string are alpha numeric is …………… .
- isal()
- isalnum()
- isnum()
- isalphanum()