Shadowing a Builtin Two Ways
def f(list):
list.append(4)
return list
def g():
total = sum([1, 2, 3])
sum = 0
return total
print(f([1, 2, 3]))
print(g())
What does this print?
Sign in to answer questions and track your progress
Sign In