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

Fill the list method that adds an item to the end (push).

stack = []
stack.____(5)  # push

Answer: append (also accepted: append)

list.append(x) adds x to the end — a stack push.
Play Problem Solving ▸