"""
Deque é uma lista de alta performance
"""
from collections import deque
deq = deque('geek')
print(deq)
print('\nAdicionando elementos na lista')
deq.append('y')
print(deq)
print('\nesquerda')
deq.appendleft('k')
print(deq)
print('\nremover')
print(deq.pop())
print(deq)
print('\nremover 1 elemento')
print(deq.popleft())
print(deq)
2be4cb84bcf2be8853191b0c05f0bead27051866
<mask token>

<mask token>
print(deq)
print("""
Adicionando elementos na lista""")
deq.append('y')
print(deq)
print('\nesquerda')
deq.appendleft('k')
print(deq)
print('\nremover')
print(deq.pop())
print(deq)
print("""
remover 1 elemento""")
print(deq.popleft())
print(deq)

<mask token>
deq = deque('geek')
print(deq)
print("""
Adicionando elementos na lista""")
deq.append('y')
print(deq)
print('\nesquerda')
deq.appendleft('k')
print(deq)
print('\nremover')
print(deq.pop())
print(deq)
print("""
remover 1 elemento""")
print(deq.popleft())
print(deq)

<mask token>
from collections import deque
deq = deque('geek')
print(deq)
print("""
Adicionando elementos na lista""")
deq.append('y')
print(deq)
print('\nesquerda')
deq.appendleft('k')
print(deq)
print('\nremover')
print(deq.pop())
print(deq)
print("""
remover 1 elemento""")
print(deq.popleft())
print(deq)

"""
Deque é uma lista de alta performance
"""
from collections import deque
deq = deque('geek')
print(deq)
print('\nAdicionando elementos na lista')
deq.append('y')
print(deq)
print('\nesquerda')
deq.appendleft('k')
print(deq)
print('\nremover')
print(deq.pop())
print(deq)
print('\nremover 1 elemento')
print(deq.popleft())
print(deq)