Examveda
Examveda

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'

B. 'hellos, worlds, universes'

C. Error

D. hellos, world, universe

Answer: Option A


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators