Question
x=3.3456789
'%-6.2f | %05.2f | %+06.1f' %(x, x, x)
a.
‘3.35 | 03.35 | +003.3’
b.
‘3.3456789 | 03.3456789 | +03.3456789’
c.
Error
d.
‘3.34 | 03.34 | 03.34+’
Posted under Python
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the output of the code shown below?
Suggested Topics
Are you eager to expand your knowledge beyond Python? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!