Checkpoint 9.7.2.
What is printed by the following statements?
alist = [4,2,8,6,5]
alist.append(True)
alist.append(False)
print(alist)
-
[4,2,8,6,5,False,True]
-
True was added first, then False was added last.
-
[4,2,8,6,5,True,False]
-
Yes, each item is added to the end of the list.
-
[True,False,4,2,8,6,5]
-
append adds at the end, not the beginning.
