Python program to convert a tuple into string.

 Code:-

method1:-

mytuple=(“easy”,“coding”,“zone”)
mystring=” “.join(mytuple)
print(mystring)


method2:-

mytuple=(“easy”,“coding”,“zone”)
mystring=” “
for i in mytuple:
mystring=mystring+” “+i
print(mystring)



Output:-

easy coding zone



One thought on “Python program to convert a tuple into string.

Leave a Reply

Your email address will not be published.