2

I have a list, L1 = ['T51', 'T52']. How can convert this into T51, T52 and pass it to a variable?

martineau
  • 119,623
  • 25
  • 170
  • 301
krishna
  • 53
  • 1
  • 1
  • 6

1 Answers1

9

Try the built in join method. Like so:

L1 = ['T51', 'T52'] 
string = " ,".join(L1)