Kombinieren Sie Python auf Listen
listone = [1,2,3]
listtwo = [4,5,6]
joinedlist = listone + listtwo
Cook's Tree Boa
listone = [1,2,3]
listtwo = [4,5,6]
joinedlist = listone + listtwo
listone = [1, 2, 3]
listtwo = [4, 5, 6]
joinedlist = listone + listtwo
>>> l1 = [1, 2, 3]
>>> l2 = [4, 5, 6]
>>> joined_list = [*l1, *l2] # unpack both iterables in a list literal
>>> print(joined_list)
[1, 2, 3, 4, 5, 6]