# The deque is a list optimized for inserting and removing items.

from collections import deque


list_custom = [*'hello this is a big list']
deq = deque(list_custom)
deq.appendleft(' now is the time')
print(deq.count('e')) #return count of item
deq.popleft()
print(deq)
bb4b7acda42cb131d925852cbb6a1b18a09ed33e
<mask token>

<mask token>
deq.appendleft(' now is the time')
print(deq.count('e'))
deq.popleft()
print(deq)

<mask token>
list_custom = [*'hello this is a big list']
deq = deque(list_custom)
deq.appendleft(' now is the time')
print(deq.count('e'))
deq.popleft()
print(deq)

from collections import deque
list_custom = [*'hello this is a big list']
deq = deque(list_custom)
deq.appendleft(' now is the time')
print(deq.count('e'))
deq.popleft()
print(deq)

# The deque is a list optimized for inserting and removing items.

from collections import deque


list_custom = [*'hello this is a big list']
deq = deque(list_custom)
deq.appendleft(' now is the time')
print(deq.count('e')) #return count of item
deq.popleft()
print(deq)