Python - Challenge
Code Life
By Pierre Marsaa
Tournament Registration - Name Validation
Welcome to the Codémon Grand Tournament!
The registration system has received a messy Codémon name entry. Your job is to clean it up and validate it.
Create a program that:
- Takes the messy name and removes extra whitespace
- Capitalizes the first letter and makes the rest lowercase (proper name format). Hint: the .capitalize() method will help you!
- Checks if the name length is between 3 and 10 characters (inclusive)
- Prints the cleaned and formatted name
↗️
Loading editor...
↶
↷
💡 Show Solution
Continue