lista=[1,5,3,6,22,45,63,30,344,22,12,25,10]lista_em_texto = '-'.join(map(str, lista))print(lista_em_texto)
Standard input is empty
1-5-3-6-22-45-63-30-344-22-12-25-10
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!