You've learned the everyday string cleaners: .strip(), .lower(), .upper(), and .replace(). Time to use them.
You're given a messy bit of text with extra spaces and mixed case. Clean it up step by step.
Your tasks
Given this starting value:
1. Use .strip() to remove the surrounding spaces and store the result in trimmed
2. Use .upper() on trimmed to make it all uppercase and store it in shouted
3. Use .replace() on shouted to change every "L" into "*", store it in masked
4. Print trimmed, then shouted, then masked, one per line
Expected output
Hello, World!
HELLO, WORLD!
HE**O, WOR*D!
Constraints
- Use the
.strip(), .upper(), and .replace() methods — do not hard-code the cleaned strings
- Print the three variables in order, one per line
- No external libraries