Run
x = [21, 14, 44, 8, 62] #convert integer values to string values x = [str(value) for value in x] #convert list to CSV string output = ','.join(x) print(output)
Output