Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python program to convert tuple into string

# Python3 code to convert a tuple
# into a string using str.join() method
 
def convertTuple(tup):
    str = ''.join(tup)
    return str

# Driver code
tuple = ('h','e','l','l',' ','w','o','r','l','d')
str = convertTuple(tuple)
print(str)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #python #program #convert #tuple #string
ADD COMMENT
Topic
Name
2+3 =