def getEachWordCapitalized(name):
 withSpaces = name.lower().replace('_', ' ')
 words = withSpaces.split(' ')
 capitalizedStrings = []
 for word in words:
  capitalizedStrings.append(word.capitalize())
 return ' '.join(capitalizedStrings)

def getEachWordCapitalized ( name ) : withSpaces = name . lower ( ) . replace ( '_' , ' ' ) words = withSpaces . split ( ' ' ) capitalizedStrings = [ ] for word in words : capitalizedStrings . append ( word . capitalize ( ) ) return ' ' . join ( capitalizedStrings )
get the capitalized name .