Vidyalelo
Python · Q42

Formatting and Decorators

Programming · Python · question 42

Q42

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

A.
'hello world'
B.
'hello' 'world' 'hello'
C.
'helloworldhello'
Answer
D.
'hello' 'hello' 'world'

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board