Python menggabungkan tuple untuk string
# initializing the list with tuples
string_tuples = [('A', 'B', 'C'), ('Tutorialspoint', 'is ', 'popular')]
# function that converts tuple to string
def join_tuple_string(strings_tuple) -> str:
return ' '.join(strings_tuple)
# joining all the tuples
result = map(join_tuple_string, string_tuples)
# converting and printing the result
print(list(result)) # ['A B C', 'Tutorialspoint is popular']
VasteMonde