Write the Python statement for each of the following tasks using BUILTIN functions/methods only:
(i) To remove the last element from the list L2 and store it in a variable x.
Answer:
Answer by student
The Python statement to remove the last element from the list L2 and store it in a variable x is:
x = L2.pop()
Detailed answer by teachoo
The rest of the post is locked. Join Teachoo Black to see the full post.