Python: String Programs

1. Count Digits, Alphabets, and special characters in the string

Output

2. To check if the string is a palindrome string

Output

3. Find a character in a string and replace it with another character

Output

4. Find a character in a string and replace it with another character

Output

5. change the first letter of every word in a sentence to capitals

Output