파이썬 deque

from collections import deque

appendLeft → ㅁㅁㅁ← append

  popLeft ← ㅁㅁㅁ → pop