1

In python, the list L contains the following elements : ['A', 1,'1','George']. Which of the following ways of slicing would assign only the first two elements to the variable X ?

Correct Answer: x=[l[0:2]

Make the most of this question

This page focuses on one Operating System Architecture question from Engineering. After checking the answer, return to the topic list to practice more or run a timed set.

Operating System Architecture MCQ: In python, the list L contains the following elements : ['A', 1,'1','George']. Which of the following ways of slicing would assign only the first two elements to the variable X ? | Extra Education