I have a nested list named value, and I need to convert all things inside into string type and join them together.
This is currently how I do it:
value=[['2014-11-20 10:51:50', 7.36, 7.63, 0.4487, 12.37, 10.4, 39.85, 52.27, 0.41, 0.78, 6],
['2014-11-20 11:22:07', 7.41, 7.67, 0.4489, 12.44, 6.6, 40.39, 53.98, 0.41, 0.754, 6]]
for i, n in enumerate(value):
for j, m in enumerate(value[i]):
value[i][j]=str(value[i][j])
",".join(value[i])
As I am new to Python, I would like to know is there a better or faster way to do it. Or maybe there is some built in functions that could do the job?