Python-Quizzes | Python List Quiz | Question 3

Last Updated :
Discuss
Comments

Find the output of the following program: 

Python
li = [1, 2, 3, 4] 
li.append([5,6,7,8]) 
print(li) 

[1,2,3,4,5,6,7,8]

[1,2,3,4]

[1,2,3,4,[5,6,7,8]]

[1,2,3,4][5,6,7,8]

Share your thoughts in the comments