Vidyalelo
Python · Q64

Formatting and Decorators

Programming · Python · question 64

Q64

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)
Answer
C.
'There are %s %d birds.' %[4, blue]
D.
'There are %d %s birds.' 4, blue

Answer: Option B

Solution

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