How can I append the content of each of the following tuples (ie, elements within the list) to another list which already has \'something\' in it? So, I want to append the follo
You can convert a tuple to a list easily:
>>> t = ('AAA', 1.11) >>> list(t) ['AAAA', 1.11]
And then you can concatenate lists with extend:
extend
>>> t = ('AAA', 1.11) >>> result = ['something'] >>> result.extend(list(t)) ['something', 'AAA', 1.11])