adplus-dvertising
frame-decoration

Question

What is the output of the code shown?
l=list('HELLO')
'first={0[0]}, third={0[2]}'.format(l)

a.

‘first=H, third=L’

b.

‘first=0, third=2’

c.

Error

d.

‘first=0, third=L’

Answer: (a).‘first=H, third=L’

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the code shown?