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 in capital letter.
iii. To check whether given character is letter or a number.
iv. To change lowercase to uppercase letter.
v. Change one character into another character.
Answers
Answered by
2
Answer:
The Following given Strings are used:
Explanation:
(I). len(str)
(II). str.title() or str.capitalize()
(III). str.isalpha and str.isdigit()
(IV). lower(str[i])
(V). str.replace(char, newchar)
Similar questions