Checkpoint 11.4.1.
What is printed by the following statements?
alist = [4,2,8,6,5]
alist = alist + 999
print(alist)
-
[4,2,8,6,5,999]
-
You cannot concatenate a list with an integer.
-
Error, you cannot concatenate a list with an integer.
-
Yes, in order to perform concatenation you would need to write alist+[999]. You must have two lists.
