Đỗ Thu Hiền
New member
What will be the output of the following Python code?
A. ‘first=H, third=L’
B. ‘first=0, third=2’
C. Error
D. ‘first=0, third=L’
Code:
l=list('HELLO')
'first={0[0]}, third={0[2]}'.format(l)
B. ‘first=0, third=2’
C. Error
D. ‘first=0, third=L’