Python-Quizzes | Python List Quiz | Question 6

Last Updated :
Discuss
Comments

Find the output of the following program: 

Python
def gfg(x,li=[]): 
	for i in range(x): 
		li.append(i*i) 
	print(li) 

gfg(3,[3,2,1]) 

[3, 2, 1, 0, 1, 4]

[0, 1, 0, 1, 4]

[0, 1]

[ ]

Share your thoughts in the comments