Write a program that analyzes a text passage:
Given:
text = "Python is amazing! Python is powerful. Python is easy to learn."
Your program should:
1. Count total number of characters (including spaces)
2. Count total number of words
3. Count how many times "Python" appears (case-sensitive)
4. Count how many sentences there are (count periods, !, ?)
5. Extract all unique words (convert to lowercase, remove punctuation)
6. Find the longest word
7. Create a new version with "Python" replaced by "Programming"
8. Reverse the entire text
Print a formatted analysis report.
Expected output format:
=== TEXT ANALYSIS REPORT ===
Original text: Python is amazing! Python is powerful. Python is easy to learn.
Total characters: 63
Total words: 12
'Python' count: 3
Sentences: 3
Unique words: ['python', 'is', 'amazing', 'powerful', 'easy', 'to', 'learn']
Longest word: 'powerful' (8 letters)
Modified text: Programming is amazing! Programming is powerful. Programming is easy to learn.
Reversed: .nrael ot ysae si nohtyP .lufewop si nohtyP !gnizama si nohtyP
REQUIREMENTS:
- Use string methods: split(), replace(), lower()
- Use len() function
- Use membership operators
- Use string slicing for reversal
- Use arithmetic operators for counting
- Use comparison operators to find longest word