def list_to_jquery_autocompletion_format(list):
 return '\n'.join(list)

def list_to_jquery_autocompletion_format ( list ) : return '\n' . join ( list )
converts a list to the format required by jquerys autocomplete plugin .