Explore a Python-based String Manipulation Tool to reverse strings, change case, count vowels, replace substrings, and more. Learn essential string operations and formatting in Python with this interactive mini project.
Create an interactive console-based tool that allows users to input strings and perform various string operations, such as reversing, formatting, replacing substrings, counting occurrences of characters, and more.
Reverse a String
Allow the user to input a string and reverse it.
Convert to Uppercase and Lowercase
Provide options to convert the string to either all uppercase or all lowercase.
Count Vowels and Consonants
Count and display the number of vowels and consonants in the input string.
Replace a Substring
Allow the user to replace a specific substring within the string with another substring.
Format Title Case
Convert the input string into title case (capitalize the first letter of each word).
Remove Extra Spaces
Remove any extra spaces from the input string, ensuring only single spaces between words.
Check for Palindrome
Check if the string is a palindrome, ignoring spaces, punctuation, and case sensitivity.
Word Count
Count and display the number of words in the input string.
Welcome to the String Manipulation Tool!
Choose an operation:
1. Reverse a string
2. Convert to uppercase
3. Convert to lowercase
4. Count vowels and consonants
5. Replace a substring
6. Format title case
7. Remove extra spaces
8. Check if the string is a palindrome
9. Count words in a string
10. Exit
Enter the number of your choice: 1
Enter a string: Hello, World!
Reversed string: !dlroW ,olleH