adplus-dvertising
frame-decoration

Question

What is the output of the code shown below?
'{a}{b}{a}'.format(a='hello', b='world')

a.

‘hello world’

b.

‘hello’ ‘world’ ‘hello’

c.

‘helloworldhello’

d.

‘hello’ ‘hello’ ‘world’

Answer: (c).‘helloworldhello’

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 below?