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
The question was posed to me by my school teacher while I was bunking the class.
I would like to ask this question from Formatting in division Formatting & Decorators of Python