Q. Consider the following code: what is the value of a at the end?


a = [1, 2, 3]
a[2] = 0
a[a[2]] = 5
a[1:2] = []

Answer :-

Value of ‘a’ at the end is [5, 0].

Post a Comment

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

Previous Post Next Post