Sobes.tech
Junior — Senior

What does the function output with multiple calls

livecode

Task condition

Determine what output will be printed after executing the function calls below.


def func(number, all_numbers=None):
    all_numbers = []
    all_numbers.append(number)
    print(all_numbers)

func(1)  # ?
func(2)  # ?