May 1 In-Class#
Note
There are no wrong answers. This is for participation credit, and is intended to let me know how well we understand the material at this point.
Access the form: https://forms.gle/CkKZ7abLS9Md5C9m8
Consider the following:
a = [1, 2, 3] b = [10, 20, 30] c = a + b
what would you expect
c[4]to be?Consider this function:
def update(a_list): a_list.append(a_list[-1] + 2)
if you call it as:
a = [1, 2] update(a)
what do you expect
ato be after the call?