Your task for today is to write a utility that cleans up and formats a user’s input text. This is great practice for writing multiple helper functions, working with string methods, and presenting clean output.
📝 Project Task
The program should:
Ask the user to input a block of text.
Create separate functions to:
Remove extra spaces (e.g., double spaces, spaces before punctuation).
Capitalize the first letter of each sentence.
Count how many words are in the text.
Print a final report that shows:
The cleaned text.
The word count.
This project helps you master string processing, function definition, and clean formatting of output — useful for document cleanup or writing tools.
📌 Expected Output
When the program runs:
💬 Join the Weekly Python Chat
Need help or want to share what you built? Join this week’s Python Chat Thread to:
Ask questions
Share your solution
Get feedback
Find study partners
💻 Launch This Project in Colab
Open the interactive Google Colab notebook for today’s project — with full instructions, hints, and solutions.
Click the button below to start coding — no setup needed:
Keep reading with a 7-day free trial
Subscribe to Daily Python Projects to keep reading this post and get 7 days of free access to the full post archives.