What is the output of print('Value: %d' % 7) in Python?
print('Value: %d' % 7)
Correct answer
A. Value: 7
7 views
A. Value: 7
7 views
Old-style % formatting still works.
Asked in: Python Interview Output Prediction
https://docs.python.org/3/reference/datamodel.htmlNot sure why the answer is A? Ask here and get an explanation.