L = [1, 2]L = L + [3] # concatenate: slowerprint LL.append(4) # faster, but in-placeprint LL = L + [5, 6] # concatenate: slowerprint LL.extend([7, 8]) # faster, but in-placeprint LL += [9, 10] # mapped to L.extend([9, 10])print L
Name (required)
email (will not be published) (required)
Website