Clean the Text
Python
15 pts
Clean the Text
Two strings are given. Create:
clean—rawwith the spaces removed from both ends and all letters in capitals ("KEREN")new_message—messagewith"Asmara"replaced by"Keren"
Print clean, then new_message. Expected output:
KEREN I love Keren
Checklist
- Keep
rawandmessageunchanged and createclean:rawwith no spaces at the ends and all in capitals. - Create
new_message:messagewith"Asmara"replaced by"Keren". - Print
clean, thennew_message.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
