Which string method is used to implement the following:
(i) to count the number of characters in the string.
(ii) to change the first character of the string to uppercase.
(iii) to check whether a given character is a letter or a number.
(iv) to change lowercase letters to uppercase.
(v) change one character to another character.
Answer:
- len(str)
- str.capitalize()
- ch.isalnum()
- str.upper()
- str.replace(old,new)