$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #6

Fill the method that removes and returns the last item.

top = stack.____()   # LIFO remove

Answer: pop (also accepted: pop)

list.pop() removes and returns the last element (LIFO).
Play Problem Solving ▸