$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #50

Fill the deque method that removes from the left.

q = deque([1, 2, 3])
q.____()  # removes 1

Answer: popleft (also accepted: popleft)

deque.popleft() removes and returns the leftmost item.
Play Problem Solving ▸