PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Python Multiple Choice Questions
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
Show Answer
Next Question
Correct Answer:
B
Explanation: The code 'There are %d %s birds.' %(4, blue) results in the output: There are 4 blue birds. When we insert more than one value, we should group the values on the right in a tuple.
© 2022-2023 Python Circle
Contact
Sponsor
Archive
Sitemap