Join two or more lists

How to join lists

list1 = [1,2,3]
list2 = [4,5,6]

lists_joined = list1 + list2

>>> list joined
[1,2,3,4,5,6]

 

https://pythonprogramming.altervista.org/how-to-create-a-list-of-tuple-from-a-string-pythonically/

Published by pythonprogramming

Started with basic on the spectrum, loved javascript in the 90ies and python in the 2000, now I am back with python, still making some javascript stuff when needed.