Mark Yourself Question
Consider the following program.
a = [1, 2, 3] b = a b.append(4) c = a[:] c.append(5) def bump(lst): lst = lst + [9] return lst d = bump(a)
Answer all four parts.
Unlock full course notes by signing up
Basic Python Commands and Functions: difficulty 2
Determine what the following program prints. Report the printed value as a decimal number.
def scaled_mean(values, factor=2.0): return sum(values) / len(values) * factor print(scaled_mean([3, 6, 9, 14]))
Give your answer as a number.