w3resource logo


Python Exercises

Python Exercise: Tuple to a string

Python tuple: Exercise-6 with Solution

Write a Python program to convert a tuple to a string.

Sample Solution :-

Python Code :

tup = ('e', 'x', 'e', 'r', 'c', 'i', 's', 'e', 's')
str =  ''.join(tup)
print(str)

Output:

>>>
exercises
>>>

Python Code Editor:


tup = ('e', 'x', 'e', 'r', 'c', 'i', 's', 'e', 's')
str =  ''.join(tup)
print(str)

Improve this sample solution and post your code through Disqus.



Join our Question Answer community to learn and share your programming knowledge.

Help the community:

Python: Fizzbuzz

C++: Decimal to binary conversion

JavaScript: Need Help in JavaScript

Python: Help me with this program