CBSE Class 11 Computer Science
Question 52 of 91
String Manipulation — Question 12
Back to all questions 12
Question Question 12
Suggest appropriate functions for the following tasks:
- To check whether the string contains digits
- To find for the occurrence a string within another string
- To convert the first letter of a string to upper case
- to capitalize all the letters of the string
- to check whether all letters of the string are in capital letters
- to remove from right of a string all string-combinations from a given set of letters
- to remove all white spaces from the beginning of a string
Answer
- isdigit()
- find()
- capitalize()
- upper()
- isupper()
- rstrip(characters)
- lstrip()