Header Ads Widget

Python program to convert a string into tuple.

 Code:-


mystring="Easycodingzone"
mytuple=tuple(x for x in mystring)
print(mytuple)

Output:-


('E', 'a', 's', 'y', 'c', 'o', 'd', 'i', 'n', 'g', 'z', 'o', 'n', 'e')



Post a Comment

0 Comments