Concatenation ( + ) : List Cancatenation « List « Python






Concatenation ( + )

 

num_list = [43, -1.23, -2, 6.19e5]
str_list = ['jack', 'jumped', 'over', 'candlestick']
mixup_list = [4.0, [1, 'x'], 'beef', -1.9+6j]

print num_list + mixup_list
print str_list + num_list

   
  








Related examples in the same category

1.List concatenation: speedList concatenation: speed
2.Using List OperatorsUsing List Operators
3.Concatinate two listsConcatinate two lists
4.List concatenation DemoList concatenation Demo