Consider the given Python program. def append_to_lst(val, lst=[]):
lst.append(val)
return lst
print(append_to_lst(1))
print(append_to_lst(2))print(append_to_lst(3, [])) Which of the following is the correct output of this program?
- A\[\begin{array}{l}{[1]} \ {[2]} \ {[3]}\end{array}\]
- B\[\begin{array}{l}{[1]} \ {[1,2]} \ {[3]}\end{array}\]
- C\[\begin{array}{l}{[1]} \ {[2]} \ {[1,2,3]}\end{array}\]
- D\[\begin{array}{l}{[1]} \ {[1,2]} \ {[1,3]}\end{array}\]