+1 vote
in Class 11 by kratos

Write the output of the given Python code.

!/user/bin/python

listl = [‘physics’, ‘chemistry’, 1997,2000];

list2 = [1,2, 3,4,5, 6, 7];

print “list2[l:5[ :”, list2[l:5]

1 Answer

+4 votes
by kratos
 
Best answer

list2[1:5[: [2,3,4,5]

...