Computer Science, asked by Anonymous, 9 months ago

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’);

Answers

Answered by sushilachhetri684
0

Answer:

fjdgnnvvnjhvcnffvngdxvnjjyf-v

Answered by ıtʑFᴇᴇʟɓᴇãᴛ
2

! ‘user/bin’pvthon

aList1 = [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 :

Similar questions