What Would be the Output of Extend List

Given the following program, what would be the final output?
def extend_list(x, lst=[]):
    lst.append(x)
    return lst


list1 = extend_list(1)
list2 = extend_list(2, [])
list3 = extend_list('3')

print(list1)
print(list2)
print(list3)
 
To check your solution you need to sign in
Sign in to continue