#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# string = self . first_name #NEWLINE# if self . last_name : #NEWLINE# #INDENT# last_names = self . last_name . split ( ) #NEWLINE# last_names [ ( - 1 ) ] = ( last_names [ ( - 1 ) ] [ : 1 ] . capitalize ( ) + '.' ) #NEWLINE# string += ( ' ' + ' ' . join ( last_names ) ) #NEWLINE# #UNINDENT# return string