(file_list)
return file_list
Out of a list of file names, returns only the ones ending by
        '.py', ordered with increasing file name length.
Out of a list of file names, returns only the ones ending by
        '.py', ordered with increasing file name length.
Out of a list of file names returns only the ones ending by . py ordered with increasing file name length .
def filter_and_sort(file_list):
    """ Out of a list of file names, returns only the ones ending by
        '.py', ordered with increasing file name length.
    """
    file_list = [filename for filename in file_list 
                          if filename.endswith('.py')]

    def key(item):
        return len(item)

    file_list.sort(key=key)
    return file_list
def filter_and_sort ( file_list ) : file_list = [ filename for filename in file_list if filename . endswith ( '.py' ) ] def key ( item ) : return len ( item ) file_list . sort ( key = key ) return file_list