How to convert a list of tuples to list of strings in Python

1 Answer

0 votes
lst = [('j', 'a', 'v', 'a'), ('p', 'y', 't', 'h', 'o', 'n'), ('c', '+', '+')] 
  
lst_str = [''.join(i) for i in lst] 
  
print (str(lst_str)) 



'''
run:

['java', 'python', 'c++']

'''

 



answered Dec 14, 2019 by avibootz
...