1. Tidy a typed name
Write code Easy ✓ CompletedWrite a function clean_name(raw) that returns the name with spaces removed from both ends, repeated inner spaces collapsed to one, and each word capitalised. Example: " mAYA rao " becomes "Maya Rao".
def clean_name(raw):
pass
def clean_name(raw):
return " ".join(raw.split()).title()