ML Assignment 0 - Python Fundamentals (ques7)

cant understand different behaviour of the output
and what does “list[]” in def(extendList(val, list=[])
means