Examveda

The output of which of the codes shown below will be: "There are 4 blue birds."?

A. 'There are %g %d birds.' %4 %blue

B. 'There are %d %s birds.' %(4, blue)

C. 'There are %s %d birds.' %[4, blue]

D. 'There are %d %s birds.' 4, blue

Answer: Option B


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators