Vidyalelo
Python · Q38

Formatting and Decorators

Programming · Python · question 38

Q38

What will be the output of the following Python code? t = '%(a)s, %(b)s, %(c)s' t % dict(a='hello', b='world', c='universe')

A.
'hello, world, universe'
Answer
B.
'hellos, worlds, universes'
C.
Error
D.
hellos, world, universe

Answer: Option A

Solution

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