adplus-dvertising
frame-decoration

Question

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

Posted under Python

Answer: (b).‘There are %d %s birds.’ %(4, blue)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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