Examveda

What will be the output of the following Python code?
'{a}{b}{a}'.format(a='hello', b='world')

A. 'hello world'

B. 'hello' 'world' 'hello'

C. 'helloworldhello'

D. 'hello' 'hello' 'world'

Answer: Option C


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators