1.

Write the output of the given python code :# ! ‘user/bin’pvthonaList1 = [123, ‘xvz’, zara’, abc’];print “Index for xyz : ” aList. index) ‘xyz’);print “Index for zara :”, aList. index(‘zara’);

Answer» This will produce the following result:

Index for xyz : 1 Index for xxx : 2


Discussion

No Comment Found