How to append all elements of one list to another one?

Viewed 17288

Probably a simple question but I would like to parse the elements of one list individually to another. For example:

a=[5, 'str1'] 
b=[8, 'str2', a] 

Currently

b=[8, 'str2', [5, 'str1']] 

However I would like to be b=[8, 'str2', 5, 'str1']

and doing b=[8, 'str2', *a] doesn't work either.

5 Answers
Related