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

Fill in the blank

# adds 5 to the end of the list nums
nums = [1, 2, 3]
nums.____(5)
# nums is now [1, 2, 3, 5]

Answer: append (also accepted: append, append())

append() adds a single element to the end of a list.
Play Problem Solving ▸