0 of 6 problems solved • 0%

Exercise prompt

Clean a Badge

Imported text often includes spaces or inconsistent capitalization. Chaining method calls passes each result to the next method.

Example

utterance = " GOOD Morning! " clean = utterance.strip() print(clean.lower()) # good morning! print(clean) # GOOD Morning!

strip and lower each produce new text. The title method similarly makes a new string, capitalizing each word.

Your task

Keep the original raw_name. Set badge_name to the stripped name with an initial capital on each word.