def extras_msg(extras):
 if (len(extras) == 1):
  verb = 'was'
 else:
  verb = 'were'
 return (', '.join((repr(extra) for extra in extras)), verb)

def extras_msg ( extras ) : if ( len ( extras ) == 1 ) : verb = 'was' else : verb = 'were' return ( ', ' . join ( ( repr ( extra ) for extra in extras ) ) , verb )
create an error message for extra items or properties .