Tidy Up a Name
beginnerUp next
Conditional Statements
Make your programs choose between different paths with if, elif, and else.
Next lessonUp next
Make your programs choose between different paths with if, elif, and else.
Next lessonOutput will appear here...
The starter code reads a messy name that might have extra spaces at the start or end and strange capitalization. Print the cleaned-up version: no surrounding spaces, and each word capitalized.
For the input aDA loVElace , a correct solution prints Ada Lovelace.
Tip
String methods can be chained: text.method_one().method_two().
No comments yet. Start the discussion.