# Python program to convert a list
# to string using list comprehension
s = ['I', 'want', 4, 'apples', 'and', 18, 'bananas']
# using list comprehension
listToStr = ' '.join([str(elem) for elem in s])
print(listToStr)
using System;
using System.Collections.Generic;
public class Example
{
public static void Main()
{
List<string> list = new List<string>() { "A", "B", "C" };
char delim = ',';
string str = String.Join(delim, list);
Console.WriteLine(str);
}
}
/*
Output: A,B,C
*/