Vidyalelo
Python · Q55

Formatting and Decorators

Programming · Python · question 55

Q55

What will be the output of the following Python code snippet? '%(qty)d more %(food)s' %'qty':1, 'food': 'spam'

A.
Error
B.
No output
C.
'1 more foods'
D.
'1 more spam'
Answer

Answer: Option D

Solution

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