+2 votes
in Class 11 by kratos

Write the output of the given python code :

! ‘user/bin’pvthon

aList1 = [123, ‘xvz’, zara’, abc’];

print “Index for xyz : ” aList. index) ‘xyz’);

print “Index for zara :”, aList. index(‘zara’);

1 Answer

+5 votes
by kratos
 
Best answer

This will produce the following result:

Index for xyz : 1 Index for *** : 2

...