Public feed #727412

Someone

public text v1 · immutable
Raw Edit
·published 2007-10-05 23:54 UTC
rendered paste body
def fix_capitalization(the_list):
    '''fix_capitalization(list) -> list/boolean
    
    Given a list of strings returns a new list of strings in which the
    capitalization of the original strings has been corrected. Returns False if
    the parameter given is not a list.'''
    
    if ( type(the_list) != list ):
        return False
    
    new_list = []
    for string in the_list:
        new_list.append(string[0] + string[1:].lower())
        
    return new_list