#  Multiplication of a list with a number creates a list that contains
#  the elements of the muliplied list n times.
#
print(3 * [ ['foo', ['bar', 'baz' ]] ])

a = ['one', 'two' ]
print(a * 2)
#
# ['one', 'two', 'one', 'two']

b = [ a ] * 2
print(b)
#
# [['one', 'two'], ['one', 'two']]

#
#  the two elements in b refer to the same object!
#

b[0][1] = 'TWO'
print(b)
#
# [['one', 'TWO'], ['one', 'TWO']]


a55a2d1fdc1f579899c08abaed3a217debc97200
<mask token>

print(3 * [['foo', ['bar', 'baz']]])
<mask token>
print(a * 2)
<mask token>
print(b)
<mask token>
print(b)

print(3 * [['foo', ['bar', 'baz']]])
a = ['one', 'two']
print(a * 2)
b = [a] * 2
print(b)
b[0][1] = 'TWO'
print(b)

#  Multiplication of a list with a number creates a list that contains
#  the elements of the muliplied list n times.
#
print(3 * [ ['foo', ['bar', 'baz' ]] ])

a = ['one', 'two' ]
print(a * 2)
#
# ['one', 'two', 'one', 'two']

b = [ a ] * 2
print(b)
#
# [['one', 'two'], ['one', 'two']]

#
#  the two elements in b refer to the same object!
#

b[0][1] = 'TWO'
print(b)
#
# [['one', 'TWO'], ['one', 'TWO']]

