import collections
q = collections.deque([1, 18, '27', 2, 'python', 18, 19, 18])
print(q)
q.extend([4, 10, 3.14, 'c'])
print(q)
'''
run:
deque([1, 18, '27', 2, 'python', 18, 19, 18])
deque([1, 18, '27', 2, 'python', 18, 19, 18, 4, 10, 3.14, 'c'])
'''