I\'m working on a script where I have a list of tuples like (\'1\',\'2\',\'3\',\'4\'). e.g.:
(\'1\',\'2\',\'3\',\'4\')
list = [(\'1\',\'2\',\'3\',\'4\'), (\'2\',\
OUTPUTS = [] for number in range(len(list_of_tuples))): tup_ = list_of_tuples[number] list_ = list(tup_) item_ = list_[0] + list_[1] + list_[2] + list_[3] list_.append(item_) OUTPUTS.append(tuple(list_))
OUTPUTS is what you desire