Question
'{0:.2f}'.format(1/3.0)
'%.2f'%(1/3.0)
a.
True
b.
False
c.
May be
d.
Can't say
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. The output of the two codes shown below is the same. State whether true or false.
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!
Cyber Security
Understand the fundamentals of safeguarding digital assets with our Cyber Security...
Java Programming
Level up your coding skills with our Java Programming MCQs. From object-oriented...