Computer Science

Suggest appropriate functions for the following tasks:

  1. To check whether the string contains digits
  2. To find for the occurrence a string within another string
  3. To convert the first letter of a string to upper case
  4. to capitalize all the letters of the string
  5. to check whether all letters of the string are in capital letters
  6. to remove from right of a string all string-combinations from a given set of letters
  7. to remove all white spaces from the beginning of a string

Python String Manipulation

39 Likes

Answer

  1. isdigit()
  2. find()
  3. capitalize()
  4. upper()
  5. isupper()
  6. rstrip(characters)
  7. lstrip()

Answered By

20 Likes


Related Questions