개요
- Python extend()
- 파이썬 extend()
colors = ['red', 'blue', 'green']
colors.extend(['black','white'])
print( colors )
# ['red', 'blue', 'green', 'black', 'white']
colors = ['red', 'blue', 'green']
colors.extend(['black','white'])
print( colors )
# ['red', 'blue', 'green', 'black', 'white']