adplus-dvertising
frame-decoration

Question

What is the output of the code shown?
 '{a}, {0}, {abc}'.format(10, a=2.5, abc=[1, 2])

a.

Error

b.

‘2.5, 10, [1, 2]’

c.

2.5, 10, 1, 2

d.

’10, 2.5, [1, 2]’

Answer: (b).‘2.5, 10, [1, 2]’

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?