0
Q:

converting tuples to string

# Python3 code to convert tuple  
# into string 
def convertTuple(tup): 
    str =  ''.join(tup) 
    return str
  
# Driver code 
tuple = ('g', 'e', 'e', 'k', 's') 
str = convertTuple(tuple) 
print(str) 
1
tuple_ = 1, 2, 3, 4, 5
str(list(tuple))
2

New to Communities?

Join the community