conceptual
Pass by value - list output
What does this code output?
pythondef func(l):
l = [4,5,6]
def func2(l):
l.append(5)
l = [1,2,3]
func(l)
print(l)
func2(l)
print(l)What does this code output?
pythondef func(l):
l = [4,5,6]
def func2(l):
l.append(5)
l = [1,2,3]
func(l)
print(l)
func2(l)
print(l)