List Operators : Concatenate « List « Python Tutorial






li = ['a', 'b', 'mpilgrim'] 
li = li + ['example', 'new']              
print li 
li += ['two']                                  
print li 
li = [1, 2] * 3                               
print li








7.5.Concatenate
7.5.1.Adding Sequences
7.5.2.Operators
7.5.3.List Operators
7.5.4.Repetition ( * )