In this python tuple program, we will convert a tuple into a string.
Steps to solve the program
- Create a tuple having characters and create an empty string.
- Use for loop to iterate over characters in the tuples and add each character to the empty string.
- Print the output.
tup = ('s','q','a','t','o','o','l','s')
str1 = ''
for char in tup:
str1 += char
print("String: ",str1)
Output :
String: sqatools