What Will Be The Output Of The Following Python Code Snippetp #110
What will be the output of the following Python code snippet?</p> <pre><code class="language-python">x=3.3456789 '%-6.2f | %05.2f | %+06.1f' %(x, x, x)</code></pre>
This multiple choice question (MCQ) is related to the book/course
gs gs109 Python.
It can also be found in
gs gs109 Formatting & Decorators in Python - Python Formatting - Quiz No.2.
What will be the output of the following Python code snippet?
x=3.3456789 '%-6.2f | %05.2f | %+06.1f' %(x, x, x)
‘3.35 | 03.35 | +003.3’
‘3.3456789 | 03.3456789 | +03.3456789’
Error
‘3.34 | 03.34 | 03.34+’