Q. Taking the list a = [1, 2, [3, 4], 5], after we make a[1:2] = [[2, 3], 4]. Verify your answers in Python Shell.


 
(a) What is the length of a ? 5
(b) How many elements does it contain? 5
(c) How many integers ? 3
(d) What does len(a[1] + a[3]) return? 4

Post a Comment

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

Previous Post Next Post