python comma separated text file to list code example Example: convert list to string separated by comma python converted_list = [str(element) for element in a_list]