How can I convert a Python tuple to string?

PythonServer Side ProgrammingProgramming

To convert to tuple of string objects into a single string, you can use join() function. Ensure that trget string is initialised to null string

>>> T1='1','2','3'
>>> s=''.join(T1)
>>> s
'123'
raja
Published on 30-Jan-2018 00:31:13
Advertisements