Header Ads Widget

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




Post a Comment

0 Comments