List operators
a = ['one', 'two']
b = ['three']
print(a) # ['one', 'two']
print(a * 2) # ['one', 'two', 'one', 'two']
print(2 * a) # ['one', 'two', 'one', 'two']
print(a + b) # ['one', 'two', 'three']
print(b + a) # ['three', 'one', 'two']
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
a = ['one', 'two']
b = ['three']
print(a) # ['one', 'two']
print(a * 2) # ['one', 'two', 'one', 'two']
print(2 * a) # ['one', 'two', 'one', 'two']
print(a + b) # ['one', 'two', 'three']
print(b + a) # ['three', 'one', 'two']