What will be the output of the following Python code?
l=list('HELLO')
'first={0[0]}, third={0[2]}'.format(l)
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: Option A

Join The Discussion