#!/usr/bin/env python #coding: utf-8 a = ['a','b','c'] b = [1,2,3] sa = ','.join(a) sb = ','.join(str(x) for x in b) print sa print sb