How to convert tuple to string in Python

1 Answer

0 votes
tpl = ("python", "php", "java", "c++")

s = " ".join(tpl)

print(s)



'''
run:

python php java c++

'''

 



answered Sep 9, 2018 by avibootz
edited Apr 12, 2024 by avibootz

Related questions

1 answer 215 views
1 answer 315 views
2 answers 343 views
343 views asked May 10, 2018 by avibootz
2 answers 278 views
1 answer 250 views
1 answer 334 views
...