Q. Consider the following list myList. What will be the elements of myList after the following two operations:


myList = [10,20,30,40]

i. myList.append([50,60])

ii. myList.extend([80,90])


Answer :-

I =  [10,20,30,40 [ 50, 60]  ]
II =  [10,20,30,40,80,90]


Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post